diff options
author | bartus | 2020-07-30 09:16:43 +0200 |
---|---|---|
committer | bartus | 2020-07-30 09:23:09 +0200 |
commit | c3efeef4224b75b34ab47a0a4bee8a7f908d0bb2 (patch) | |
tree | 344298aa03c66d30edade783ef68ec01a2132eb5 | |
parent | 5ff008238461105780b43b040bfde9c99bff799a (diff) | |
download | aur-c3efeef4224b75b34ab47a0a4bee8a7f908d0bb2.tar.gz |
Add .shellcheckrc
-rw-r--r-- | .shellcheckrc | 6 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/.shellcheckrc b/.shellcheckrc new file mode 100644 index 000000000000..426d75bb9e30 --- /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 @@ -1,10 +1,9 @@ #!/bin/hint/bash # Maintainer : bartus <arch-user-repoᘓbartus.33mail.com> -# shellcheck disable=SC2034,SC2154 # allow unused/unset variables -# shellcheck disable=SC2191 # preserve current _CMAKE_FLAGS initialization. # Configuration. _fragment=${FRAGMENT:-#branch=master} +# shellcheck disable=SC2206 [[ -v CUDA_ARCH ]] && _cuda_capability=(${CUDA_ARCH}) #some extra, unofficially supported stuff goes here: @@ -81,7 +80,7 @@ build() { msg "python version detected: ${_pyver}" # determine whether we can precompile CUDA kernels - _CUDA_PKG=`pacman -Qq cuda 2>/dev/null` || true + _CUDA_PKG=$(pacman -Qq cuda 2>/dev/null) || true if [ "$_CUDA_PKG" != "" ] && ! ((DISABLE_CUDA)) ; then _CMAKE_FLAGS+=( -DWITH_CYCLES_CUDA_BINARIES=ON -DCUDA_TOOLKIT_ROOT_DIR=/opt/cuda ) |