BlueGit

blue-star speeltuin

only delet when file actually exists

timfa Tim · pushed by timfa

Authored 2022-10-15 · 4 years ago

Hash
6df8e470cb3b509235ff5c1565623cd6168dd96c
Parent
9e5d0917
1 file changed +8 −4
src/build.sh +8 −4
@@ -1,10 +1,14 @@
1 BUILD_FILE="$PWD"/build/game.js
2 SRC_DIR="$PWD/src"
1 BUILD_FILE="./build/game.js"
2 SRC_DIR="./src"
3 3
4 4 printf "Build started, output file: $BUILD_FILE\n"
5 unlink $BUILD_FILE
6 5
7 loop() {
6 if test -f "$BUILD_FILE"; then
7 unlink $BUILD_FILE
8 fi
9
10 loop()
11 {
8 12 shopt -s nullglob
9 13 shopt -s globstar
10 14
@@ -1,10 +1,14 @@
1BUILD_FILE="$PWD"/build/game.js
1BUILD_FILE="./build/game.js"
2SRC_DIR="$PWD/src"
2SRC_DIR="./src"
3
3
4printf "Build started, output file: $BUILD_FILE\n"
4printf "Build started, output file: $BUILD_FILE\n"
5unlink $BUILD_FILE
6
5
7loop() {
6if test -f "$BUILD_FILE"; then
7 unlink $BUILD_FILE
8fi
9
10loop()
11{
8 shopt -s nullglob
12 shopt -s nullglob
9 shopt -s globstar
13 shopt -s globstar
10
14