Skip to content

Commit

Permalink
Fix argument handling behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 14, 2024
1 parent 710c376 commit 57bf61a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion nix/process-compose/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,16 @@ in
text = ''
${preHook}
set -x; process-compose ${cliOutputs.global} ${cliOutputs.up} --config ${configFile} "$@"; set +x
run-process-compose () {
set -x; process-compose ${cliOutputs.global} --config ${configFile} "$@"; set +x
}
# Run `up` command, with arguments; unless the user wants to pass their own subcommand.
if [ "$#" -eq 0 ]; then
run-process-compose up ${cliOutputs.up}
else
run-process-compose "$@"
fi
${postHook}
'';
Expand Down

0 comments on commit 57bf61a

Please sign in to comment.