Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sohaha authored Jul 24, 2024
1 parent 53dfa1f commit c29cab7
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,19 @@ curl -O -L "${isChinaProxy}https://github.com/sohaha/zzz/releases/download/v${LA
if [ $? -eq 0 ];then
echo "Untar..."
tar zxf "$F"
sudo cp -f zzz /usr/local/bin
chmod +x /usr/local/bin/zzz
echo "Install done"
/usr/local/bin/zzz --help

P="/usr/local/bin"

sudo cp -f zzz $P
if [ $? -eq 0 ];then
echo "Install done"
else
P=$(echo $PATH | cut -d ':' -f 1)
sudo cp -f zzz $P
fi

chmod +x "${P}/zzz"
"${P}/zzz" --help
rm -rf /tmp/zzz
else
echo "Install fail..."
Expand Down

0 comments on commit c29cab7

Please sign in to comment.