From c13df241b5287b2fb8d18df6c57915b0a9eabdbe Mon Sep 17 00:00:00 2001 From: Steven Foerster Date: Sat, 8 May 2021 11:54:23 -0400 Subject: [PATCH] bash fcn --- scripts/subinstallers/docker_raspbian.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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