Skip to content

Commit

Permalink
add fish shell compatibility to sudo check
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberxdruid211 authored Feb 8, 2025
1 parent a5e079e commit ecfbbc4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@ echo
echo "Installing SwiftlyGo ..."
#
# check if user is root and set SUDO accordingly
if [ "$EUID" -ne 0 ]; then
SUDO="sudo"
else
SUDO=""
fi
SUDO=$(if [ "$(id -u)" -ne 0 ]; then echo sudo; else echo ""; fi)
#
DOWNLOAD_URL="https://github.com/cyberxdruid211/swiftlygo/releases/download/$swgo_ver/swiftlygo-$arch_type"
DEST_DIR="/usr/libexec/swiftlygo/bin/"
Expand Down

0 comments on commit ecfbbc4

Please sign in to comment.