check if dir exists
All checks were successful
continuous-integration/drone Build is passing

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") filename=$(find . -mindepth 1 -maxdepth 1 -name "blendOS-*.iso")
date=${filename%-*} date=${filename%-*}
date=${date#*-} date=${date#*-}
if [ ! -d /iso/$date/ ]; then
mkdir /iso/$date/ mkdir /iso/$date/
fi
cp -r $filename /iso/$date/ cp -r $filename /iso/$date/
cd /iso/ cd /iso/