Skip to content

Commit 99f659c

Browse files
authored
Add guard for root bash install (#92)
* Add guard for root bash install * Bump to version 1.2.5
1 parent 7728495 commit 99f659c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.2.4
1+
v1.2.5

install

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
set -e
44

5+
if [[ "$USER" == root ]]; then
6+
echo "Please run 'bash install' as non-root user" 2>&1
7+
exit 1
8+
fi
9+
510
DIR="$(dirname "$0")"
611
VERSION="$(cat $DIR/VERSION | tr -d '[:space:]')"
712

0 commit comments

Comments
 (0)