Add guard for root bash install (#92)

* Add guard for root bash install

* Bump to version 1.2.5
This commit is contained in:
Rico Tiongson authored and GitHub committed 2020-05-12 09:46:31 +08:00
1 parent 7728495350
commit 99f659c9db
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
v1.2.4
v1.2.5
+5
View File
@@ -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:]')"