mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
add check
This commit is contained in:
parent
e242a8b30f
commit
eff19630e6
1 changed files with 7 additions and 2 deletions
|
@ -17,8 +17,13 @@ usage () {
|
|||
|
||||
### check for root
|
||||
if ! [[ ${UID} -eq 0 ]]; then
|
||||
echo "ERROR: Please run as root user!"
|
||||
exit 1
|
||||
echo "ERROR: Please run as root user!"
|
||||
exit 1
|
||||
fi
|
||||
### check for x86_64
|
||||
if ! [[ "$(uname -m)" == "x86_64" ]]; then
|
||||
echo "ERROR: Pleae run on x86_64 hardware."
|
||||
exit 1
|
||||
fi
|
||||
echo "Start release creation in $1 ..."
|
||||
mkdir -p $1
|
||||
|
|
Loading…
Reference in a new issue