Skip to content

Commit

Permalink
command line issues fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
rajvarkala committed Jan 26, 2024
1 parent d4fce86 commit e2d189d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions valmi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [[ "${TRACE-0}" == "1" ]]; then
set -o xtrace
fi

if [[ "$#" -lt 2 || "${1-}" =~ ^-*h(elp)?$ ]]; then
if [[ "$#" -lt 1 || "${1-}" =~ ^-*h(elp)?$ ]]; then
echo 'Usage:
./valmi [STAGE] [COMMAND]
./valmi prod/dev [docker-compose args]
Expand All @@ -34,7 +34,7 @@ main() {
jitsu_enabled=false

cmd_args=${@:2}
if [[ "$#" -gt 2 && "$2" == "--with-jitsu" ]]; then
if [[ "$#" -gt 1 && "$2" == "--with-jitsu" ]]; then
jitsu_enabled=true
cmd_args=${@:3}
fi
Expand Down

0 comments on commit e2d189d

Please sign in to comment.