Skip to content

Commit 3a81a00

Browse files
committed
fix: Do not show invalid command if no subcommand was passed
1 parent 1c2cb2a commit 3a81a00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/lib/cmd/bpm.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ main() {
8585
exit
8686
;;
8787
*)
88-
log.error "Command '$1' not valid"
88+
if [ -n "$1" ]; then
89+
log.error "Command '$1' not valid"
90+
fi
8991
util.show_help
9092
;;
9193
esac

0 commit comments

Comments
 (0)