Skip to content

Commit

Permalink
remove commented, apply review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostOfGauss committed Oct 10, 2022
1 parent 5e4883e commit d810e4d
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions tools/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,6 @@ fi

set -u

# # If RUSTUP_UPDATE_ROOT is unset or empty, default it.
# RUSTUP_UPDATE_ROOT="${RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}"

#XXX: If you change anything here, please make the same changes in setup_mode.rs
# usage() {
# cat 1>&2 <<EOF
# rustup-init 1.25.1 (48d233f65 2022-07-12)
# The installer for rustup
#
# USAGE:
# rustup-init [FLAGS] [OPTIONS]
#
# FLAGS:
# -v, --verbose Enable verbose output
# -q, --quiet Disable progress output
# -y Disable confirmation prompt.
# --no-modify-path Don't configure the PATH environment variable
# -h, --help Prints help information
# -V, --version Prints version information
#
# OPTIONS:
# --default-host <default-host> Choose a default host triple
# --default-toolchain <default-toolchain> Choose a default toolchain to install
# --default-toolchain none Do not install any toolchains
# --profile [minimal|default|complete] Choose a profile
# -c, --component <components>... Component name to also install
# -t, --target <targets>... Target name to also install
# EOF
# }

usage() {
cat 1>&2 <<EOF
manta-cli-init 1.0.0-beta
Expand Down Expand Up @@ -117,7 +87,8 @@ main() {
*:"${_dir}":*)
;;
*)
echo "\nexport PATH=\"${_dir}:\$PATH\";" >> "$HOME/.profile"
echo >> "$HOME/.profile"
echo "export PATH=\"${_dir}:\$PATH\";" >> "$HOME/.profile"
printf "[INFO] Updated to the ~/.profile PATH variable.\n\nRun \`source ~/.profile\` to update the current shell PATH.\n"
;;
esac
Expand Down

0 comments on commit d810e4d

Please sign in to comment.