mirror of
https://github.com/karl0ss/AnotterKiosk.git
synced 2025-06-16 15:59:13 +01:00
run commands as sudo
This commit is contained in:
parent
5934a79525
commit
3581873b41
@ -7,10 +7,10 @@ SCRIPT_DIR="$(dirname "$(realpath "$0")")"
|
|||||||
BUILD_DIR="${SCRIPT_DIR}/work/root/"
|
BUILD_DIR="${SCRIPT_DIR}/work/root/"
|
||||||
|
|
||||||
# cleanup any previous build attempts
|
# cleanup any previous build attempts
|
||||||
umount -fl "${BUILD_DIR}" || true
|
sudo umount -fl "${BUILD_DIR}" || true
|
||||||
losetup -D /dev/loop0 || true
|
sudo losetup -D /dev/loop0 || true
|
||||||
rm -rf "${BUILD_DIR}" || true
|
sudo rm -rf "${BUILD_DIR}" || true
|
||||||
mkdir -p "${BUILD_DIR}"
|
sudo mkdir -p "${BUILD_DIR}"
|
||||||
|
|
||||||
# download a modern RaspiOS build
|
# download a modern RaspiOS build
|
||||||
if [ ! -f raspios.img.xz ]
|
if [ ! -f raspios.img.xz ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user