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 673aef0 commit 01b4b11Copy full SHA for 01b4b11
install.sh
@@ -55,7 +55,11 @@ else
55
PREFIX="${PREFIX:-$HOME/.local}"
56
fi
57
INSTALL_DIR="$PREFIX/bin"
58
-mkdir -p "$INSTALL_DIR"
+if ! mkdir -p "$INSTALL_DIR"; then
59
+ echo "Error: Could not create directory $INSTALL_DIR. You may not have write permissions." >&2
60
+ echo "Try running this script with sudo or set PREFIX to a directory you own (e.g., export PREFIX=\$HOME/.local)." >&2
61
+ exit 1
62
+fi
63
64
# Install binary
65
if [ -f "$DOWNLOAD_DIR/copilot" ]; then
0 commit comments