removed root user requirement from main script
This commit is contained in:
parent
0cfd276b4c
commit
f1c5e5f9c4
1 changed files with 22 additions and 25 deletions
|
|
@ -93,14 +93,14 @@ update(){
|
|||
# Options and Arguments Parser
|
||||
#------------------------------------------------------#
|
||||
|
||||
if [[ $runuser == root ]] ; then
|
||||
case $1 in
|
||||
case $1 in
|
||||
-i | --install)
|
||||
install
|
||||
;;
|
||||
-r | --remove)
|
||||
remove
|
||||
;;
|
||||
-d | --dependencies)
|
||||
-u | --update)
|
||||
update
|
||||
#sleep $ratelimit
|
||||
|
|
@ -114,10 +114,7 @@ if [[ $runuser == root ]] ; then
|
|||
usage
|
||||
#exit 2
|
||||
;;
|
||||
esac
|
||||
else
|
||||
fail "Must be run as user 'root'"
|
||||
fi
|
||||
esac
|
||||
#------------------------------------------------------#
|
||||
# Script begins here
|
||||
#------------------------------------------------------#
|
||||
|
|
|
|||
Loading…
Reference in a new issue