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 4e028d9 commit 56c9ed8Copy full SHA for 56c9ed8
install.sh
@@ -28,11 +28,10 @@ DOWNLOAD_DIR="${HOME}/.copilot"
28
mkdir -p "$DOWNLOAD_DIR"
29
30
# Download and extract
31
-cd "$DOWNLOAD_DIR"
32
if command -v curl >/dev/null 2>&1; then
33
- curl -fsSL "$DOWNLOAD_URL" | tar -xz
+ curl -fsSL "$DOWNLOAD_URL" | tar -xz -C "$DOWNLOAD_DIR"
34
elif command -v wget >/dev/null 2>&1; then
35
- wget -qO- "$DOWNLOAD_URL" | tar -xz
+ wget -qO- "$DOWNLOAD_URL" | tar -xz -C "$DOWNLOAD_DIR"
36
else
37
echo "Error: Neither curl nor wget found. Please install one of them."
38
exit 1
0 commit comments