Skip to content

Commit

Permalink
update lib
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbtek committed Jan 4, 2019
1 parent 8522439 commit 48888b6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libraries/util.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ function isEmptyString()

function postUpMessage()
{
echo -e "\n\033[1;4;32m¯\_(ツ)_/¯\033[0m"
echo -e "\n\033[1;32m¯\_(ツ)_/¯\033[0m"
}

function printTable()
Expand Down Expand Up @@ -1999,6 +1999,14 @@ function checkExistUserLogin()
fi
}

function checkRequireNonRootUser()
{
if [[ "$(whoami)" = 'root' ]]
then
fatal '\nFATAL : non root login required'
fi
}

function checkRequireRootUser()
{
checkRequireUserLogin 'root'
Expand Down

0 comments on commit 48888b6

Please sign in to comment.