summaryrefslogtreecommitdiff
path: root/package.inc.sh
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2019-01-17 12:48:34 -0500
committerDave Reisner <dreisner@archlinux.org>2019-01-17 12:48:34 -0500
commit0a6a4d08c69706542c88b831b456fcba8293dc2d (patch)
tree18cbd5a3e65d491edff149c4d7f10a863b93d67a /package.inc.sh
parent43f37ce943d81dd001ec25627e163af73d02f4c5 (diff)
downloadasp32-0a6a4d08c69706542c88b831b456fcba8293dc2d.tar.xz
Use exit status rather than string emptiness
Diffstat (limited to 'package.inc.sh')
-rw-r--r--package.inc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package.inc.sh b/package.inc.sh
index 7af7a82..66a83c6 100644
--- a/package.inc.sh
+++ b/package.inc.sh
@@ -135,7 +135,7 @@ package_export() {
subtree=repos/$repo-$OPT_ARCH
fi
- if [[ -z $(git ls-tree "remotes/$remote/packages/$pkgname" "$subtree/") ]]; then
+ if ! git ls-tree "remotes/$remote/packages/$pkgname" "$subtree/" &>/dev/null; then
if [[ $repo ]]; then
log_error "package '%s' not found in repo '%s-%s'" "$pkgname" "$repo" "$OPT_ARCH"
return 1