only delet when file actually exists
@@ -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 @@1
BUILD_FILE="$PWD"/build/game.js1
BUILD_FILE="./build/game.js"2
SRC_DIR="$PWD/src"2
SRC_DIR="./src"3
3
4
printf "Build started, output file: $BUILD_FILE\n"4
printf "Build started, output file: $BUILD_FILE\n"5
unlink $BUILD_FILE6
5
7
loop() {6
if test -f "$BUILD_FILE"; then7
unlink $BUILD_FILE8
fi9
10
loop() 11
{8
shopt -s nullglob12
shopt -s nullglob9
shopt -s globstar13
shopt -s globstar10
14