diff --git a/scripts/subinstallers/docker_raspbian.sh b/scripts/subinstallers/docker_raspbian.sh index d4f7405..797de92 100755 --- a/scripts/subinstallers/docker_raspbian.sh +++ b/scripts/subinstallers/docker_raspbian.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -e +set +e compare_version() { local versionOne="${1}" @@ -28,9 +28,12 @@ compare_version() { return ${returncode} } # end of function compare_version +# libseccomp2 LIBSECCOMP2_VERSION=$(sudo -E apt-cache policy libseccomp2 | egrep ^\ *Inst | awk '{print $2}') -if [ $(compare_version "$LIBSECCOMP2_VERSION" "<" "2.5.1-1") -eq 0 ]; then +compare_version $LIBSECCOMP2_VERSION '<' '2.5.1-1' + +if [ $? -eq 0 ]; then # this is dumb but the raspbian repo managers aren't impressive pushd . cd /tmp