mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
use _root_check
This commit is contained in:
parent
489a699e45
commit
6f1c4c6a40
1 changed files with 2 additions and 6 deletions
|
@ -129,13 +129,9 @@ preload_builtin_modules() {
|
|||
|
||||
if [[ -z "$1" ]]; then
|
||||
usage
|
||||
cleanup 0
|
||||
fi
|
||||
### check for root
|
||||
if ! [[ ${UID} -eq 0 ]]; then
|
||||
echo "ERROR: Please run as root user!"
|
||||
exit 1
|
||||
exit 0
|
||||
fi
|
||||
_root_check
|
||||
|
||||
_opt_short='c:d:g:hk:'
|
||||
parseopts "$_opt_short" -- "$@" || exit 1
|
||||
|
|
Loading…
Reference in a new issue