runphp: passer les arguments inchangés à composer
This commit is contained in:
parent
9def939cf1
commit
7e05caf4d7
@ -455,6 +455,9 @@ OPTIONS
|
|||||||
|
|
||||||
function host_docker_run() {
|
function host_docker_run() {
|
||||||
# lancer une commande avec docker
|
# lancer une commande avec docker
|
||||||
|
if [ "$1" == composer ]; then
|
||||||
|
: # pas d'analyse d'argument pour composer
|
||||||
|
else
|
||||||
SOPTS=+w:
|
SOPTS=+w:
|
||||||
LOPTS=help,chdir:,no-use-rslave
|
LOPTS=help,chdir:,no-use-rslave
|
||||||
args="$(getopt -n "$MYNAME" -o "$SOPTS" -l "$LOPTS" -- "$@")" || exit 1; eval "set -- $args"
|
args="$(getopt -n "$MYNAME" -o "$SOPTS" -l "$LOPTS" -- "$@")" || exit 1; eval "set -- $args"
|
||||||
@ -498,6 +501,7 @@ OPTIONS
|
|||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
args=(
|
args=(
|
||||||
run -it --rm
|
run -it --rm
|
||||||
@ -573,6 +577,9 @@ function container_exec() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" == composer ]; then
|
||||||
|
: # pas d'analyse d'argument pour composer
|
||||||
|
else
|
||||||
SOPTS=+w:
|
SOPTS=+w:
|
||||||
LOPTS=chdir:
|
LOPTS=chdir:
|
||||||
args="$(getopt -n "$MYNAME" -o "$SOPTS" -l "$LOPTS" -- "$@")" || exit 1; eval "set -- $args"
|
args="$(getopt -n "$MYNAME" -o "$SOPTS" -l "$LOPTS" -- "$@")" || exit 1; eval "set -- $args"
|
||||||
@ -587,6 +594,7 @@ function container_exec() {
|
|||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
die "no command specified"
|
die "no command specified"
|
||||||
|
Loading…
Reference in New Issue
Block a user