|
|
@ -136,14 +136,14 @@ function ifthenelse() { |
|
|
|
os="${arg%%:::*}" |
|
|
|
os="${arg%%:::*}" |
|
|
|
thenpart="${arg#*:::}" |
|
|
|
thenpart="${arg#*:::}" |
|
|
|
if test "${thenpart/:::/}" = "${thenpart}"; then |
|
|
|
if test "${thenpart/:::/}" = "${thenpart}"; then |
|
|
|
docker exec ${DOCKER_ID} bash -c 'os="'$os'"; if [[ "$(lsb_release -is)-$(lsb_release -cs)" =~ ${os} ]]; then '"${cmd//ARG/${thenpart}}"'; fi' |
|
|
|
docker exec ${DOCKER_ID} bash -c 'os="'$os'"; if [[ "$(lsb_release -is)-$(lsb_release -cs)-$(dpkg --print-architecture)" =~ ${os} ]]; then '"${cmd//ARG/${thenpart}}"'; fi' |
|
|
|
else |
|
|
|
else |
|
|
|
elsepart="${thenpart##*:::}" |
|
|
|
elsepart="${thenpart##*:::}" |
|
|
|
thenpart="${thenpart%:::*}" |
|
|
|
thenpart="${thenpart%:::*}" |
|
|
|
if test -n "${thenpart}"; then |
|
|
|
if test -n "${thenpart}"; then |
|
|
|
docker exec ${DOCKER_ID} bash -c 'os="'$os'"; if [[ "$(lsb_release -is)-$(lsb_release -cs)" =~ ${os} ]]; then '"${cmd//ARG/${thenpart}}"'; else '"${cmd//ARG/${elsepart}}"'; fi' |
|
|
|
docker exec ${DOCKER_ID} bash -c 'os="'$os'"; if [[ "$(lsb_release -is)-$(lsb_release -cs)-$(dpkg --print-architecture)" =~ ${os} ]]; then '"${cmd//ARG/${thenpart}}"'; else '"${cmd//ARG/${elsepart}}"'; fi' |
|
|
|
else |
|
|
|
else |
|
|
|
docker exec ${DOCKER_ID} bash -c 'os="'$os'"; if [[ "$(lsb_release -is)-$(lsb_release -cs)" =~ ${os} ]]; then true; else '"${cmd//ARG/${elsepart}}"'; fi' |
|
|
|
docker exec ${DOCKER_ID} bash -c 'os="'$os'"; if [[ "$(lsb_release -is)-$(lsb_release -cs)-$(dpkg --print-architecture)" =~ ${os} ]]; then true; else '"${cmd//ARG/${elsepart}}"'; fi' |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|