add check

This commit is contained in:
Tobias Powalowski 2022-01-14 11:10:58 +01:00
parent e242a8b30f
commit eff19630e6

View file

@ -20,6 +20,11 @@ if ! [[ ${UID} -eq 0 ]]; then
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
cd $1