Skip to content

Commit

Permalink
add: build command
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhnajafiz committed Feb 14, 2023
1 parent 76330b3 commit 64cca71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Execute the mustache script:

```shell
chmod +x ./bin/mustache
./bin/mustache
./bin/mustache build
```
<br />

Expand Down
12 changes: 9 additions & 3 deletions bin/mustache
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,16 @@ if [ "$#" -gt 0 ]; then
elif [ "$1" == "down" ]; then
docker_down
else
# shellcheck disable=SC2059
printf "${On_Red}Fatal: unknown command${color_off} ${BIRed}$1${color_off}\n"
exit 1
if [ "$1" != "build" ]; then
# shellcheck disable=SC2059
printf "${On_Red}Fatal: unknown command${color_off} ${BIRed}$1${color_off}\n"
exit 1
fi
fi
else
# shellcheck disable=SC2059
printf "${On_Red}Fatal: no command\n"
exit 1
fi

# Execute
Expand Down

0 comments on commit 64cca71

Please sign in to comment.