summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbartus2020-12-10 12:58:46 +0100
committerbartus2020-12-10 13:11:25 +0100
commit41cd049e607eff6954feebfe46e0f597a8de2e73 (patch)
tree137b6ee091bc7454da5c174fffb4062d51c41a72
parentd11d74cfc7138f39284782ac3155664f5e1efc08 (diff)
downloadaur-41cd049e607eff6954feebfe46e0f597a8de2e73.tar.gz
Add shellcheckrc, fix warnings
-rw-r--r--.shellcheckrc6
-rw-r--r--PKGBUILD2
2 files changed, 7 insertions, 1 deletions
diff --git a/.shellcheckrc b/.shellcheckrc
new file mode 100644
index 00000000000..426d75bb9e3
--- /dev/null
+++ b/.shellcheckrc
@@ -0,0 +1,6 @@
+# allow unsafe `cd `
+disable=SC2164
+# allow unused variable (pkgname,pkgver etc.)
+disable=SC2034
+# allow uninitialized variable (srcdir,pkgdir)
+disable=SC2154
diff --git a/PKGBUILD b/PKGBUILD
index 06aebc314ec..66e9c34b174 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -35,7 +35,7 @@ pkgver() {
}
prepare() {
- git -C "${srcdir}/${pkgname}" apply -v ${srcdir}/{boost_107400,cmake.extra.install.dirs.remove,osl_1.11.8}.patch
+ git -C "${srcdir}/${pkgname}" apply -v "${srcdir}"/{boost_107400,cmake.extra.install.dirs.remove,osl_1.11.8}.patch
sed '/python37/s/37/39/' -i "${srcdir}/${pkgname}"/src/appleseed.python/CMakeLists.txt
}