We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91e9a02 commit 165059aCopy full SHA for 165059a
1 file changed
install.sh
@@ -1,17 +1,16 @@
1
#!/usr/bin/env bash
2
set -euo pipefail
3
4
-# URL to the real installer
5
BOOT_URL="https://raw.githubusercontent.com/CodeCompasss/codekub/main/boot.sh"
6
7
echo "============================="
8
echo " Installing Codekub "
9
10
echo "This script will run boot.sh from GitHub..."
11
12
-# Run with sudo if necessary
+# Use sudo if available
13
if command -v sudo >/dev/null 2>&1; then
14
- curl -fsSL "$BOOT_URL" | sudo bash
+ bash <(curl -fsSL "$BOOT_URL") # run boot.sh in a process substitution
15
else
16
- curl -fsSL "$BOOT_URL" | bash
+ bash <(curl -fsSL "$BOOT_URL")
17
fi
0 commit comments