From 91c52f2bdbdb1b8e150b65f534318621dea70fe1 Mon Sep 17 00:00:00 2001 From: edapess Date: Sat, 18 May 2024 00:01:13 +0400 Subject: [PATCH] fix: add sudo to ask user permission --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 761f6c7..1270103 100755 --- a/build.sh +++ b/build.sh @@ -27,7 +27,7 @@ if [ $? -eq 0 ]; then EXECUTABLE="$PROJECT_DIR/target/release/gitname" # move the executable to /usr/local/bin echo -e "Moving executable to ${GREEN}/usr/local/bin/...${NC}" - mv "$EXECUTABLE" /usr/local/bin/ + sudo mv "$EXECUTABLE" /usr/local/bin/ echo -e "Executable is now available in ${GREEN}/usr/local/bin/gitname${NC}" echo -e "Please restart your terminal session"