Skip to content

Commit

Permalink
Fix script when used from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmac committed Jul 22, 2020
1 parent 2bbb535 commit 388245c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

set -euo pipefail

ARG=${1:-deploy}

# wesbite folder
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

Expand All @@ -25,7 +27,7 @@ npm run build


# Build only
if [ "$1" == "-b" ]; then
if [ "$ARG" == "-b" ]; then
exit 0
fi

Expand Down

0 comments on commit 388245c

Please sign in to comment.