mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
chore: update install script to work (added sudo to mv) and update gitignore
This commit is contained in:
+2
-1
@@ -1,8 +1,9 @@
|
|||||||
# Custom
|
# Custom
|
||||||
dist
|
dist
|
||||||
author_file
|
author_file
|
||||||
|
cover.out
|
||||||
|
|
||||||
go.work
|
go.work
|
||||||
go.sum
|
go.sum
|
||||||
go.work.sum
|
go.work.sum
|
||||||
go.work
|
go.work
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ if [ ! -d "$(dirname "$target_dir")" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mv $file "$target_dir"
|
sudo mv $file "$target_dir"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Failed to move the binary to $target_dir"
|
echo "Failed to move the binary to $target_dir"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user