From 558ca8f8e0d627d0719d149cc82aaa68d81b80b8 Mon Sep 17 00:00:00 2001 From: Celestia Ludenberg Date: Sun, 7 Jun 2026 20:53:47 +0200 Subject: [PATCH] Clean up /root/packages/ check --- run_before_squashfs.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run_before_squashfs.sh b/run_before_squashfs.sh index 505035c..99bf673 100755 --- a/run_before_squashfs.sh +++ b/run_before_squashfs.sh @@ -109,7 +109,11 @@ echo "------------------" >> "/etc/motd" echo "---> Install locally built packages on ISO (place packages under airootfs/root/packages) --->" echo "--> content of /root/packages:" -ls "/root/packages/" 2>&1 || echo " (empty - no local packages)" +if [[ -d "/root/packages/" ]]; then + ls "/root/packages/" +else + echo " (empty - no local packages)" +fi echo "end of content of /root/packages. <---" if [[ -d "/root/packages/" ]]; then