Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit01b4b11

Browse files
devm33Copilot
andauthored
Update install.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent673aef0 commit01b4b11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎install.sh‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ else
5555
PREFIX="${PREFIX:-$HOME/.local}"
5656
fi
5757
INSTALL_DIR="$PREFIX/bin"
58-
mkdir -p"$INSTALL_DIR"
58+
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
5963

6064
# Install binary
6165
if [-f"$DOWNLOAD_DIR/copilot" ];then

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp