summaryrefslogtreecommitdiff
path: root/arch-nspawn.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-05-05 18:41:10 -0400
committerErich Eckner <git@eckner.net>2017-07-14 07:00:23 +0200
commitcd000ccc0144c7ec54696520bf7217163a39cde0 (patch)
tree0d16c2eaec9923d73f17dcab673138252573c899 /arch-nspawn.in
parent196cdd7ae6626e8c66336b6121c9024b70acea9c (diff)
downloaddevtools32-cd000ccc0144c7ec54696520bf7217163a39cde0.tar.xz
Add `# shellcheck` directives to quiet shellcheck, add PKGBUILD.proto
The added PKGBUILD.proto file is so that shellcheck can know know what to expect that a PKGBUILD sets.
Diffstat (limited to 'arch-nspawn.in')
-rw-r--r--arch-nspawn.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index 0639199..453792b 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -76,7 +76,9 @@ if [[ "$CARCH" = 'i'*'86' ]]; then
'/etc/pacman.d/mirrorlist32'
)"
else
+# shellcheck disable=2016
host_mirror=$(pacman --cachedir /doesnt/exist -Sddp extra/devtools 2>/dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#;s#(.*/)[^/]+/extra/[^/]+#\1$arch/$repo#')
+# shellcheck disable=2016
fi
[[ $host_mirror == *file://* ]] && host_mirror_path=$(echo "$host_mirror" | sed -r 's#file://(/.*)/\$repo/os/\$arch#\1#g')