Skip to content

Commit

Permalink
Clean up trailing whitespace in rustup-init.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Dec 2, 2024
1 parent b6fdf2f commit f8df9c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rustup-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ main() {
ensure downloader "$_url" "$_file" "$_arch"
ensure chmod u+x "$_file"
if [ ! -x "$_file" ]; then
err "Cannot execute $_file (likely because of mounting /tmp as noexec)."
err "Please copy the file to a location where you can execute binaries and run ./rustup-init${_ext}."
err "Cannot execute $_file (likely because of mounting /tmp as noexec)."
err "Please copy the file to a location where you can execute binaries and run ./rustup-init${_ext}."
exit 1
fi

Expand Down Expand Up @@ -508,7 +508,7 @@ get_architecture() {
err "This host is running an x32 userland, for which no native toolchain is provided."
err "You will have to install multiarch compatibility with i686 or amd64."
err "To do so, set the RUSTUP_CPUTYPE environment variable set to i686 or amd64 and re-run this script."
err "You will be able to add an x32 target after installation by running \`rustup target add x86_64-unknown-linux-gnux32\`."
err "You will be able to add an x32 target after installation by running \`rustup target add x86_64-unknown-linux-gnux32\`."
exit 1
}; else
_cputype=i686
Expand Down Expand Up @@ -588,7 +588,7 @@ check_cmd() {
}

assert_nz() {
if [ -z "$1" ]; then
if [ -z "$1" ]; then
err "assert_nz $2"
exit 1
fi
Expand Down

0 comments on commit f8df9c1

Please sign in to comment.