Skip to content
Snippets Groups Projects
Commit f27c4dcd authored by Arno Schoenmakers's avatar Arno Schoenmakers
Browse files

bug 1285: Added options -s to only print level, no list

parent c82c7b2e
No related branches found
No related tags found
No related merge requests found
...@@ -267,6 +267,14 @@ if [ -z "$1" ]; then ...@@ -267,6 +267,14 @@ if [ -z "$1" ]; then
exit exit
fi fi
# argument s or -s only returns level, no list
if [ "$1" = "s" -o "$1" = "-s" ]; then
level=`cat /tmp/level.admin`
echo $level
exit
fi
# don't allow root to run swlevel because all logfile get root access. # don't allow root to run swlevel because all logfile get root access.
user=`id | cut -d'(' -f2 | cut -d')' -f1` user=`id | cut -d'(' -f2 | cut -d')' -f1`
echo $user echo $user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment