Skip to content

Commit 650fe35

Browse files
committed
Forward command-line arguments in script wrapper
1 parent 8f9095d commit 650fe35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/_script-wrapper.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
# source scripts/_script-wrapper.sh
1919

2020
if [[ -n "$RUNNING_IN_CONTAINER" ]] || which "$PROCESS" > /dev/null 2>&1; then
21-
do_it
21+
do_it "$@"
2222
elif which docker > /dev/null 2>&1; then
2323
docker run --rm \
2424
--volume .:/workspace \
2525
--user "$(id -u):$(id -g)" \
2626
--env RUNNING_IN_CONTAINER=true \
2727
"$DOCKER_IMAGE" \
28-
"/workspace/scripts/$SCRIPT_NAME"
28+
"/workspace/scripts/$SCRIPT_NAME" "$@"
2929
elif which podman > /dev/null 2>&1; then
3030
podman run --rm \
3131
--volume .:/workspace \
3232
--userns=keep-id \
3333
--env RUNNING_IN_CONTAINER=true \
3434
"$DOCKER_IMAGE" \
35-
"/workspace/scripts/$SCRIPT_NAME"
35+
"/workspace/scripts/$SCRIPT_NAME" "$@"
3636
else
3737
if [[ -n "$PROCESS" ]]; then
3838
echo "Either '$PROCESS', 'docker' or 'podman' has to be installed to run this script."

0 commit comments

Comments
 (0)