Skip to content

Commit 64cca71

Browse files
committed
add: build command
1 parent 76330b3 commit 64cca71

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Execute the mustache script:
3838

3939
```shell
4040
chmod +x ./bin/mustache
41-
./bin/mustache
41+
./bin/mustache build
4242
```
4343
<br />
4444

Diff for: bin/mustache

+9-3
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,16 @@ if [ "$#" -gt 0 ]; then
217217
elif [ "$1" == "down" ]; then
218218
docker_down
219219
else
220-
# shellcheck disable=SC2059
221-
printf "${On_Red}Fatal: unknown command${color_off} ${BIRed}$1${color_off}\n"
222-
exit 1
220+
if [ "$1" != "build" ]; then
221+
# shellcheck disable=SC2059
222+
printf "${On_Red}Fatal: unknown command${color_off} ${BIRed}$1${color_off}\n"
223+
exit 1
224+
fi
223225
fi
226+
else
227+
# shellcheck disable=SC2059
228+
printf "${On_Red}Fatal: no command\n"
229+
exit 1
224230
fi
225231

226232
# Execute

0 commit comments

Comments
 (0)