From 6a2c81487cfe4304df4e9dfc3b7fdba0f760ff51 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Fri, 22 Nov 2024 14:34:45 -0600 Subject: Only delete files that exist --- init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init') diff --git a/init b/init index 3f9af63..6766335 100755 --- a/init +++ b/init @@ -13,8 +13,8 @@ cp $obj2 /root cd /root if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then # Release build, delete docs/ and tests/ - zip -d $obj1 docs/ docs/* tests/ tests/* - zip -d $obj2 docs/ docs/* tests/ tests/* + zip -d $obj1 doc/ doc/* + zip -d $obj2 doc/ doc/* # And pack the library with upx unzip $obj1 lib/* upx --no-progress lib/* -- cgit v1.2.3-55-g6feb