Skip to content

Commit 0e2976b

Browse files
authored
Merge pull request #2314 from workingjubilee/posix-eh-close-enough
Reassert /bin/sh validity
2 parents 690a2f5 + 0c4da75 commit 0e2976b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rustup-init.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
#!/bin/bash
1+
#!/bin/sh
2+
# shellcheck shell=dash
23

34
# This is just a little script that can be downloaded from the internet to
45
# install rustup. It just does platform detection, downloads the installer
56
# and runs it.
67

8+
# It runs on Unix shells like {a,ba,da,k,z}sh. It uses the common `local`
9+
# extension. Note: Most shells limit `local` to 1 var per line, contra bash.
10+
711
set -u
812

913
# If RUSTUP_UPDATE_ROOT is unset or empty, default it.

0 commit comments

Comments
 (0)