Skip to content

Commit

Permalink
🐛 bug: Delete extra files on build (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshKapadia2 committed Apr 21, 2021
1 parent fc2af4b commit 9d91ef9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
#!/bin/bash
#!/bin/sh

set -euo pipefail;
shopt -s extglob;

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

mkdir -p "${output}";
# Remove output dir if it already exists
rm -rf "${output}";

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

for path in \
"static" \
Expand Down

0 comments on commit 9d91ef9

Please sign in to comment.