From 1f03269901b7e4e031fd7684d5f02bbb75cfc01f Mon Sep 17 00:00:00 2001 From: Nasir Hossain Date: Fri, 16 Feb 2024 04:21:01 +0600 Subject: [PATCH] fix: ignore error copying mnt into itself --- build.bash | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.bash b/build.bash index 837186f..c8d4db3 100755 --- a/build.bash +++ b/build.bash @@ -51,6 +51,9 @@ 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 + set +e sudo cp -r dist/* dist/mnt/. + set -e + sudo rsync -av --exclude='dist' dist/ dist/mnt/. sudo umount dist/mnt sudo rmdir dist/mnt