runphp: passer les arguments inchangés à composer

This commit is contained in:
Jephté Clain 2025-03-03 09:25:22 +04:00
parent 9def939cf1
commit 7e05caf4d7

View File

@ -455,6 +455,9 @@ OPTIONS
function host_docker_run() {
# lancer une commande avec docker
if [ "$1" == composer ]; then
: # pas d'analyse d'argument pour composer
else
SOPTS=+w:
LOPTS=help,chdir:,no-use-rslave
args="$(getopt -n "$MYNAME" -o "$SOPTS" -l "$LOPTS" -- "$@")" || exit 1; eval "set -- $args"
@ -498,6 +501,7 @@ OPTIONS
esac
shift
done
fi
args=(
run -it --rm
@ -573,6 +577,9 @@ function container_exec() {
fi
fi
if [ "$1" == composer ]; then
: # pas d'analyse d'argument pour composer
else
SOPTS=+w:
LOPTS=chdir:
args="$(getopt -n "$MYNAME" -o "$SOPTS" -l "$LOPTS" -- "$@")" || exit 1; eval "set -- $args"
@ -587,6 +594,7 @@ function container_exec() {
esac
shift
done
fi
if [ $# -eq 0 ]; then
die "no command specified"