Skip to content

Commit 165059a

Browse files
committed
trying to fix the install file
1 parent 91e9a02 commit 165059a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

install.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
# URL to the real installer
54
BOOT_URL="https://raw.githubusercontent.com/CodeCompasss/codekub/main/boot.sh"
65

76
echo "============================="
87
echo " Installing Codekub "
98
echo "============================="
109
echo "This script will run boot.sh from GitHub..."
1110

12-
# Run with sudo if necessary
11+
# Use sudo if available
1312
if command -v sudo >/dev/null 2>&1; then
14-
curl -fsSL "$BOOT_URL" | sudo bash
13+
bash <(curl -fsSL "$BOOT_URL") # run boot.sh in a process substitution
1514
else
16-
curl -fsSL "$BOOT_URL" | bash
15+
bash <(curl -fsSL "$BOOT_URL")
1716
fi

0 commit comments

Comments
 (0)