Skip to content

Commit

Permalink
Fix build.sh to use bash and rm -f
Browse files Browse the repository at this point in the history
build.sh uses pushd/popd but is coded with /bin/sh; at least some
/bin/sh's don't support that.  Also, rm jsonview.zip fails if
the file doesn't exist; rm -f fixes that.

Fixes: #160
Signed-off-by: Dan Mick <dan.mick@redhat.com>
  • Loading branch information
dmick committed Mar 15, 2019
1 parent 3b6dfaa commit e90bd6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sh
@@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/bash -e

tsc

Expand All @@ -14,7 +14,7 @@ cp license.txt build/license.txt
cp -r src/_locales build
cp src/icon*.png build

rm jsonview.zip
rm -f jsonview.zip
pushd build
zip -r ../jsonview.zip *
popd
popd

0 comments on commit e90bd6c

Please sign in to comment.