Detect architecture

This commit is contained in:
Kroese 2023-05-19 16:54:14 +02:00 committed by GitHub
parent 384a3ad042
commit 192635de6b

View File

@ -21,6 +21,7 @@ trap 'error "Status $? while: ${BASH_COMMAND} (line $LINENO/$BASH_LINENO)"' ERR
STORAGE="/storage"
KERNEL=$(uname -r | cut -b 1)
ARCH=$(dpkg --print-architecture)
[ ! -d "$STORAGE" ] && error "Storage folder (${STORAGE}) not found!" && exit 13