runphp: passer les arguments inchangés à composer
This commit is contained in:
parent
9def939cf1
commit
7e05caf4d7
@ -455,15 +455,18 @@ OPTIONS
|
||||
|
||||
function host_docker_run() {
|
||||
# lancer une commande avec docker
|
||||
SOPTS=+w:
|
||||
LOPTS=help,chdir:,no-use-rslave
|
||||
args="$(getopt -n "$MYNAME" -o "$SOPTS" -l "$LOPTS" -- "$@")" || exit 1; eval "set -- $args"
|
||||
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"
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
--) shift; break;;
|
||||
--help)
|
||||
eecho "\
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
--) shift; break;;
|
||||
--help)
|
||||
eecho "\
|
||||
runphp: lancer une commande dans un environnement PHP déterminé
|
||||
|
||||
USAGE
|
||||
@ -490,14 +493,15 @@ OPTIONS
|
||||
aller dans le répertoire spécifié avant de lancer la commande
|
||||
--no-use-rslave
|
||||
paramètre montage des volumes"
|
||||
exit 0
|
||||
;;
|
||||
-w|--chdir) shift; Chdir="$1";;
|
||||
--no-use-rslave) UseRslave=;;
|
||||
*) die "$1: option non configurée";;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
exit 0
|
||||
;;
|
||||
-w|--chdir) shift; Chdir="$1";;
|
||||
--no-use-rslave) UseRslave=;;
|
||||
*) die "$1: option non configurée";;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
fi
|
||||
|
||||
args=(
|
||||
run -it --rm
|
||||
@ -573,20 +577,24 @@ function container_exec() {
|
||||
fi
|
||||
fi
|
||||
|
||||
SOPTS=+w:
|
||||
LOPTS=chdir:
|
||||
args="$(getopt -n "$MYNAME" -o "$SOPTS" -l "$LOPTS" -- "$@")" || exit 1; eval "set -- $args"
|
||||
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"
|
||||
|
||||
chdir=
|
||||
action=
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
--) shift; break;;
|
||||
-w|--chdir) shift; chdir="$1";;
|
||||
*) die "$1: option non configurée";;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
chdir=
|
||||
action=
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
--) shift; break;;
|
||||
-w|--chdir) shift; chdir="$1";;
|
||||
*) die "$1: option non configurée";;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
fi
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
die "no command specified"
|
||||
|
Loading…
Reference in New Issue
Block a user