Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/package.inc.sh
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2017-03-31 10:07:51 -0400
committerDave Reisner <dreisner@archlinux.org>2017-03-31 10:07:51 -0400
commit8036060e1f0f738d4b1c9e7491085fd5adeb41a2 (patch)
treeba6f25a7eae1433ce2a92dec98469140d7d9a1ed /package.inc.sh
parentf4f108642e9b00e41baa25cfbbc0d724aac6314d (diff)
assorted cleanup
mostly to make shellcheck happy
Diffstat (limited to 'package.inc.sh')
-rw-r--r--package.inc.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/package.inc.sh b/package.inc.sh
index a0515c9..b1d438b 100644
--- a/package.inc.sh
+++ b/package.inc.sh
@@ -1,7 +1,7 @@
package_resolve() {
local pkgbase
- [[ -v pkgname ]] || log_fatal 'BUG: package_resolve called without pkgname var set'
+ [[ $pkgname ]] || log_fatal 'BUG: package_resolve called without pkgname var set'
if package_find_remote "$1" "$2"; then
return 0
@@ -9,7 +9,7 @@ package_resolve() {
if pkgbase=$(archweb_get_pkgbase "$1") && package_find_remote "$pkgbase" "$2"; then
log_info '%s is part of package %s' "$1" "$pkgbase"
- printf -v pkgname %s "$pkgbase"
+ pkgname=$pkgbase
return 0
fi
@@ -64,10 +64,10 @@ package_log() {
case $method in
shortlog)
- logargs=(--pretty=oneline)
+ logargs=('--pretty=oneline')
;;
difflog)
- logargs=(-p)
+ logargs=('-p')
;;
log)
logargs=()