Skip to content

Commit

Permalink
change binary install dir
Browse files Browse the repository at this point in the history
  • Loading branch information
adikari committed Sep 25, 2023
1 parent c130867 commit 193705d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ download_binary_and_run_installer() {
local _tar="safebox_""${PACKAGE_VERSION:1}""_${_arch}.tar.gz"
local _url="$BINARY_DOWNLOAD_PREFIX/$PACKAGE_VERSION/${_tar}"
local _dir="$(mktemp -d 2>/dev/null || ensure mktemp -d -t test)"
local _bin_dir="$HOME/.local/bin"
local _bin_dir="/usr/local/bin"

mkdir -p $_bin_dir

Expand All @@ -65,7 +65,7 @@ download_binary_and_run_installer() {

tar -xf $_tar

mv "$_dir/dist/safebox$_ext" "$_bin_dir"
sudo mv "$_dir/dist/safebox$_ext" "$_bin_dir"
local _retval=$?

chmod +x "${_bin_dir}/safebox"
Expand Down

0 comments on commit 193705d

Please sign in to comment.