Skip to content

Commit

Permalink
cqfd: fix test of empty build_cmd
Browse files Browse the repository at this point in the history
When there is no build.command defined in ${cqfdrc}, we still want to be
able to run command with "cqfd run", and this is why we have to test
$build_cmd after assigning it from "cqfd run"
  • Loading branch information
florentsfl committed Dec 5, 2024
1 parent 8142616 commit 32e5b07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cqfd
Original file line number Diff line number Diff line change
Expand Up @@ -610,16 +610,16 @@ done
config_load $flavor
if [ -z "$build_cmd" ]; then
die "No build.command defined in $cqfdrc !"
fi
if $has_alternate_command; then
build_cmd="$*"
elif [ -n "$*" ]; then
build_cmd+=" $*"
fi
if [ -z "$build_cmd" ]; then
die "No build.command defined in ${cqfdrc}, and no command specified"
fi
docker_run "$build_cmd"
if $has_to_release; then
Expand Down

0 comments on commit 32e5b07

Please sign in to comment.