Skip to content

Commit 9bbc372

Browse files
committed
cli/builbo: fix default action to help when none specified
ACTION was set to ${DEFAULT_ACTION} ("help") on line 32, then immediately overwritten with ACTION="" two lines later, causing the script to have no action when the user provides no action flag. Remove the overwrite so that ACTION retains its default value of "help", consistent with DEFAULT_ACTION. This means running builbo with no action flag now correctly displays the usage/help text.
1 parent 26e5f3d commit 9bbc372

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/builbo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function detect_container_command() {
3232
ACTION="${DEFAULT_ACTION}"
3333
# action that was explixitly set from the command line:
3434
SELECTED_ACTION=""
35-
ACTION=""
35+
ACTION="${DEFAULT_ACTION}"
3636
# shell for interactive use:
3737
DEFAULT_I_SHELL="bash"
3838
I_SHELL="${DEFAULT_I_SHELL}"

0 commit comments

Comments
 (0)