From de72d1a35cd5289692ceb862b82b34a3c670bb0e Mon Sep 17 00:00:00 2001 From: Slug-Boi Date: Fri, 13 Dec 2024 10:28:51 +0100 Subject: [PATCH] chore: update install script to work (added sudo to mv) and update gitignore --- .gitignore | 3 ++- installer/install.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a28581a..e6b2aa3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,9 @@ # Custom dist author_file +cover.out go.work go.sum go.work.sum -go.work \ No newline at end of file +go.work diff --git a/installer/install.sh b/installer/install.sh index 1b37535..ba4ebfc 100755 --- a/installer/install.sh +++ b/installer/install.sh @@ -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