Skip to content

Commit

Permalink
Add guard for root bash install (#92)
Browse files Browse the repository at this point in the history
* Add guard for root bash install

* Bump to version 1.2.5
  • Loading branch information
Hikari9 authored May 12, 2020
1 parent 7728495 commit 99f659c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.2.4
v1.2.5
5 changes: 5 additions & 0 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -e

if [[ "$USER" == root ]]; then
echo "Please run 'bash install' as non-root user" 2>&1
exit 1
fi

DIR="$(dirname "$0")"
VERSION="$(cat $DIR/VERSION | tr -d '[:space:]')"

Expand Down

0 comments on commit 99f659c

Please sign in to comment.