From d13d19574dff1afef8e56332ea65eae7481f6c85 Mon Sep 17 00:00:00 2001 From: Nasir Hossain Date: Fri, 16 Feb 2024 04:07:18 +0600 Subject: [PATCH] fix: use sudo when copying and removing directory --- build.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.bash b/build.bash index 5b191d8..837186f 100755 --- a/build.bash +++ b/build.bash @@ -51,6 +51,6 @@ dd if=/dev/zero of=dist/boot/boot.img bs=1M count=64 mkfs.ext4 dist/boot/boot.img mkdir -p dist/mnt sudo mount dist/boot/boot.img dist/mnt - cp -r dist/* dist/mnt/. + sudo cp -r dist/* dist/mnt/. sudo umount dist/mnt -rmdir dist/mnt +sudo rmdir dist/mnt