You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
307 B
17 lines
307 B
#!/bin/bash |
|
#remaster lib |
|
[ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; } |
|
|
|
#check_user |
|
function check_user() { |
|
#check root |
|
[ "`whoami`" == "root" ] || { |
|
echo "### ERROR ### Remaster need ROOT permision!" |
|
return 10 |
|
} |
|
} |
|
|
|
#this func is standalone executable |
|
[ -n "$1" ] && { |
|
check_user $@ |
|
}
|
|
|