aboutsummaryrefslogtreecommitdiffstats
path: root/testing/aws-ena-driver-hardened
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-01-10 17:06:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-01-10 17:06:28 +0000
commit81a3c7ddb2c20e3f78aee38fde48f66381edb0b9 (patch)
tree05a96890ce220bd044f801e88661d7fbb171b2bc /testing/aws-ena-driver-hardened
parent985e3f17e968bee2003c4ee9debef5f4ef987f3e (diff)
downloadaports-81a3c7ddb2c20e3f78aee38fde48f66381edb0b9.tar.bz2
aports-81a3c7ddb2c20e3f78aee38fde48f66381edb0b9.tar.xz
testing/aws-ena-driver-*: dont abort if APKBUILD is in wrong cwd
Diffstat (limited to 'testing/aws-ena-driver-hardened')
-rw-r--r--testing/aws-ena-driver-hardened/APKBUILD10
1 files changed, 6 insertions, 4 deletions
diff --git a/testing/aws-ena-driver-hardened/APKBUILD b/testing/aws-ena-driver-hardened/APKBUILD
index f20eaa69ed..904d0222fd 100644
--- a/testing/aws-ena-driver-hardened/APKBUILD
+++ b/testing/aws-ena-driver-hardened/APKBUILD
@@ -7,10 +7,12 @@ _pkgrel=0
# This APK is co-versioned with the kernel instead of using the upstream
# version, so pull in the kernel pkg version as _kernver and kernel pkg rel as
# _kernrel
-eval $(sed -n \
- -e '/^pkgver/s/^pkg/_kern/p' \
- -e '/^pkgrel/s/^pkg/_kern/p' \
- ../../main/linux-${_flavor}/APKBUILD)
+if [ -f ../../linux-${_flavor}/APKBUILD ]; then
+ eval $(sed -n \
+ -e '/^pkgver/s/^pkg/_kern/p' \
+ -e '/^pkgrel/s/^pkg/_kern/p' \
+ ../../main/linux-${_flavor}/APKBUILD)
+fi
# Vanilla kernels don't contain a flavor or pkgrel in the ABI
if [ "${_flavor}" = "vanilla" ]; then