check if dir exists

This commit is contained in:
askiiart 2025-04-25 00:43:54 -05:00
parent 7413d662de
commit 035ca08bad
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A

View file

@ -13,7 +13,9 @@ cd ./out/
filename=$(find . -mindepth 1 -maxdepth 1 -name "blendOS-*.iso")
date=${filename%-*}
date=${date#*-}
mkdir /iso/$date/
if [ ! -d /iso/$date/ ]; then
mkdir /iso/$date/
fi
cp -r $filename /iso/$date/
cd /iso/