Skip to content

Commit 6267e19

Browse files
Matthias AltTobias Lückel
authored andcommitted
added code to remove the shopware-version from $@ in runInTest.sh so, we don't pass it to docker-exec
1 parent 4007869 commit 6267e19

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bin/sdRunInTest.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
VERSION=$1
44
SHOPWARE_VERSION=$2
55

6+
# Remove Shopware-Version from `$@`, so it is not passed to docker-compose command
7+
for arg do
8+
shift
9+
case $arg in
10+
(52|53|54|55) : ;;
11+
(*) set -- "$@" "$arg" ;;
12+
esac
13+
done
14+
615
if [ -z "${SHOPWARE_VERSION}" ]; then
716
echo "You must provide the version of shopware you want to interact with, e.g. 54 for shopware 5.4"
817
exit 1

0 commit comments

Comments
 (0)