Skip to content

Commit

Permalink
chore: remove dead code from install.sh (#230)
Browse files Browse the repository at this point in the history
`SELECTED_USER` is never used
  • Loading branch information
rusty-snake authored Jun 11, 2022
1 parent aa4a6d8 commit 4cf2025
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
#!/usr/bin/env sh

SELECTED_USER="$1"
CURRENT_UID="$(id -u)"

if [ "$SELECTED_USER" = "" ]; then
echo "Please specify a user!"
exit 1
fi

if [ "$CURRENT_UID" -ne 0 ]; then
echo "Please run using sudo!"
exit 1
Expand Down

0 comments on commit 4cf2025

Please sign in to comment.