Skip to content

Commit

Permalink
chore: update install script to work (added sudo to mv) and update gi…
Browse files Browse the repository at this point in the history
…tignore
  • Loading branch information
Slug-Boi committed Dec 13, 2024
1 parent fa866a7 commit de72d1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Custom
dist
author_file
cover.out

go.work
go.sum
go.work.sum
go.work
go.work
2 changes: 1 addition & 1 deletion installer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if [ ! -d "$(dirname "$target_dir")" ]; then
exit 1
fi

mv $file "$target_dir"
sudo mv $file "$target_dir"
if [ $? -ne 0 ]; then
echo "Failed to move the binary to $target_dir"
exit 1
Expand Down

0 comments on commit de72d1a

Please sign in to comment.