File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,14 @@ echo " Config: @${username}/${slug}"
1010echo "========================================"
1111echo ""
1212
13+ TMPDIR="\${TMPDIR:-/tmp}"
14+ OPENBOOT_BIN="\$TMPDIR/openboot-\$\$"
15+
1316echo "Some installations require admin privileges."
1417sudo -v
1518( while true; do sudo -n true; sleep 50; done ) 2>/dev/null &
16- SUDO_KEEPALIVE_PID=$!
17- trap " kill $SUDO_KEEPALIVE_PID 2>/dev/null; rm -f \\ "\$OPENBOOT_BIN\\"" EXIT
19+ SUDO_KEEPALIVE_PID=\ $!
20+ trap ' kill \ $SUDO_KEEPALIVE_PID 2>/dev/null; rm -f "\$OPENBOOT_BIN"' EXIT
1821
1922install_xcode_clt() {
2023 if xcode-select -p &>/dev/null; then
5962fi
6063
6164OPENBOOT_URL="https://github.com/openbootdotdev/openboot/releases/latest/download/openboot-darwin-\${ARCH}"
62- TMPDIR="\${TMPDIR:-/tmp}"
63- OPENBOOT_BIN="\$TMPDIR/openboot-\$\$"
64-
65-
6665
6766echo "Downloading OpenBoot..."
6867curl -fsSL "\$OPENBOOT_URL" -o "\$OPENBOOT_BIN"
You can’t perform that action at this time.
0 commit comments