Skip to content

Commit

Permalink
🐛 bug: Correct build.sh extra file deletion error (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshKapadia2 committed Apr 21, 2021
1 parent d4f258d commit d84aa55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
#!/bin/sh

set -euo pipefail;
shopt -s extglob;

output="${1-./build}";
echo "Building to: '${output}'";

mkdir -p "${output}";

# Remove any extra files
rm -r ${output}/* || true;
cd ${output};
rm -rf * !("src"|"build.sh") || true;
cd ..;

for path in \
"static" \
Expand Down

0 comments on commit d84aa55

Please sign in to comment.