From 5d7511a69c1a91b68da6f1f19057e2bc49e482aa Mon Sep 17 00:00:00 2001 From: 1deterministic <22532656+1deterministic@users.noreply.github.com> Date: Wed, 10 Jul 2019 22:57:16 -0300 Subject: [PATCH] Added missing/existing folder detection when creating new ones in the build script --- build.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 56fcec3..2508851 100644 --- a/build.sh +++ b/build.sh @@ -3,6 +3,11 @@ build=./build color_schemes=./color-schemes + +if [ ! -d $build ]; then + mkdir $build +fi + for i in $color_schemes/*; do for f in $i/*; @@ -10,7 +15,10 @@ do [ -d $f ] && $( name=$(basename $f)-$(basename $(dirname $f)) - mkdir $build/$name && + if [ ! -d $build/$name ]; then + mkdir $build/$name + fi + cp $f/background.png $build/$name && cp $f/box.png $build/$name && cp $f/bullet.png $build/$name &&