Commit 241c6245 authored by Mo Zhou's avatar Mo Zhou

autopkgtest: minor fix

parent 4ac541a6
Pipeline #30999 failed with stages
in 20 minutes and 2 seconds
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
set -xe set -xe
DEB_HOST_ARCH=$(dpkg --print-architecture) DEB_HOST_ARCH=$(dpkg --print-architecture)
kver=$(apt-cache show linux-headers-$DEB_HOST_ARCH | grep Depends: | sed -e 's@.*linux-headers-\(.*\)\w*@\1@') kver=$(apt-cache show linux-headers-$DEB_HOST_ARCH | grep Depends: | sed -e 's@.*linux-headers-\(.*\)\w*@\1@')
zfsver=$(apt-cache show zfs-dkms | grep Version: | sed -e 's@Version: \(.*\)-.*@\1@') zfsver=$(apt-cache show zfs-dkms | grep Version: | head -n1 | sed -e 's@Version: \(.*\)-.*@\1@')
if ! (echo "amd64 arm64 ppc64el s390x" | grep -o $DEB_HOST_ARCH); then if ! (echo "amd64 arm64 ppc64el s390x" | grep -o $DEB_HOST_ARCH); then
exit 0 exit 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment