Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
- Improved the aspect that if the user has write permissions on /usr/bin, no privilege escalation is requested.
  • Loading branch information
rompelhd authored Apr 6, 2024
1 parent be9478a commit 53a52f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ if [ -n "$binary" ]; then
mv etree-$ARCHITECTURE-termux-version /data/data/com.termux/files/usr/bin/etree
chmod +x /data/data/com.termux/files/usr/bin/etree
else
sudo mv etree-$ARCHITECTURE-unknown-linux /bin/etree
if [ -w /usr/bin ]; then
mv etree-$ARCHITECTURE-unknown-linux /bin/etree
else
sudo mv etree-$ARCHITECTURE-unknown-linux /bin/etree
fi
chmod +x /bin/etree
fi
else
Expand Down

0 comments on commit 53a52f5

Please sign in to comment.