Browse Source

bash fcn

merge-requests/83/head
Steven Foerster 5 years ago
parent
commit
c13df241b5
  1. 7
      scripts/subinstallers/docker_raspbian.sh

7
scripts/subinstallers/docker_raspbian.sh

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
set -e set +e
compare_version() { compare_version() {
local versionOne="${1}" local versionOne="${1}"
@ -28,9 +28,12 @@ compare_version() {
return ${returncode} return ${returncode}
} # end of function compare_version } # end of function compare_version
# libseccomp2
LIBSECCOMP2_VERSION=$(sudo -E apt-cache policy libseccomp2 | egrep ^\ *Inst | awk '{print $2}') 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 # this is dumb but the raspbian repo managers aren't impressive
pushd . pushd .
cd /tmp cd /tmp

Loading…
Cancel
Save