Skip to content

Commit c649c46

Browse files
obnoxxxCopilot
andauthored
Potential fix for pull request finding
fix broken action validation logic. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Michael Adam <obnox@samba.org>
1 parent ef4ace8 commit c649c46

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

cli/builbo

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -243,20 +243,10 @@ if [ "$CONTAINER_CMD" = "podman" ]; then
243243
fi
244244

245245
if [ -n "${SELECTED_ACTION}" ]; then
246-
if [ -n "${SELECTED_ACTION}" ]; then
247-
echo "Error: multiple actions specified on cmdline but only one is allowed."
248-
usage
249-
exit 1
250-
fi
251-
echo "Error: multiple actions specified on cmdline but only one is allowed."
252-
usage
253-
exit 1
254-
fi
255-
if [ -z "${SELECTED_ACTION}" ]; then
256246
echo "error: no action elected. Please use exactly one of -t, -h, -e, and -b."
257-
usage
258-
exit 1
259-
fi
247+
echo "error: no action elected. Please use exactly one of -t, -h, -e, and -b."
248+
usage
249+
exit 1
260250

261251
if [ "${ACTION}" = "build" ]; then
262252

0 commit comments

Comments
 (0)