Update 1 file: bootstrap.sh
This commit is contained in:
@@ -2,11 +2,11 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# If piped, download and run as file so exec works
|
# If piped, download and run as file so exec works
|
||||||
if [[ ! -t 0 ]]; then
|
if [[ ! -t 0 && -z "$_BOOTSTRAP_FILE" ]]; then
|
||||||
TMP=$(mktemp /tmp/bootstrap.XXXXXX.sh)
|
TMP=$(mktemp /tmp/bootstrap.XXXXXX.sh)
|
||||||
curl -fsSL https://git.jeremymcclure.com/jeremy/dotstate-storage/raw/branch/master/default/.config/zsh/bootstrap.sh -o "$TMP"
|
curl -fsSL https://git.jeremymcclure.com/jeremy/dotstate-storage/raw/branch/master/default/.config/zsh/bootstrap.sh -o "$TMP"
|
||||||
chmod +x "$TMP"
|
chmod +x "$TMP"
|
||||||
exec "$TMP"
|
_BOOTSTRAP_FILE=1 exec "$TMP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# --- Helpers ---
|
# --- Helpers ---
|
||||||
|
|||||||
Reference in New Issue
Block a user