Skip to content

Commit

Permalink
fix(scripts): fix installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingandyyy committed Apr 19, 2022
1 parent dad273b commit e66cfcf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ curl -Ls "https://github.com/$author/$package_name/archive/refs/tags/$latest_ver
tar -zxf $tmpoupoutputgz --directory /tmp
if ! ls -d $userlocalbin > /dev/null 2>&1
then
sudo touch $userlocalbin
sudo mv $fmpfolder/$package_name-$latest_version/bin/$package_name $userlocalbin
sudo touch $userlocalbin && mv $fmpfolder/$package_name-$latest_version/bin/$package_name $userlocalbin
else
sudo mv $fmpfolder/$package_name-$latest_version/bin/$package_name $userlocalbin
fi
Expand Down

0 comments on commit e66cfcf

Please sign in to comment.