diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-03-28 19:20:11 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2017-05-05 18:28:56 -0400 |
commit | 518a22f386ccb5968dce85490278494e058995b1 (patch) | |
tree | 814a53b965cfcc26ededc9fd9dd48c52ac4e2432 /checkpkg.in | |
parent | 0beccef4ac405fdefdafba5b9ac6e7962b1610d2 (diff) |
Add `# shellcheck` directives to quiet shellcheck, add PKGBUILD.protolukeshu/to-upstream/pre-release-20170505
The added PKGBUILD.proto file is so that shellcheck can know know what
to expect that a PKGBUILD sets.
Diffstat (limited to 'checkpkg.in')
-rw-r--r-- | checkpkg.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/checkpkg.in b/checkpkg.in index 20920be..e0e1f83 100644 --- a/checkpkg.in +++ b/checkpkg.in @@ -7,6 +7,7 @@ m4_include(lib/common.sh) # Source makepkg.conf; fail if it is not found if [[ -r '/etc/makepkg.conf' ]]; then + # shellcheck source=makepkg-x86_64.conf source '/etc/makepkg.conf' else die '/etc/makepkg.conf not found!' @@ -14,8 +15,10 @@ fi # Source user-specific makepkg.conf overrides if [[ -r "${XDG_CONFIG_HOME:-$HOME/.config}/pacman/makepkg.conf" ]]; then + # shellcheck source=/dev/null source "${XDG_CONFIG_HOME:-$HOME/.config}/pacman/makepkg.conf" elif [[ -r "$HOME/.makepkg.conf" ]]; then + # shellcheck source=/dev/null source "$HOME/.makepkg.conf" fi @@ -23,6 +26,7 @@ if [[ ! -f PKGBUILD ]]; then die 'This must be run in the directory of a built package.' fi +# shellcheck source=PKGBUILD.proto . ./PKGBUILD if [[ ${arch[0]} == 'any' ]]; then CARCH='any' |