diff options
author | Dave Reisner <dreisner@archlinux.org> | 2019-01-17 12:48:34 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2019-01-17 12:48:34 -0500 |
commit | 0a6a4d08c69706542c88b831b456fcba8293dc2d (patch) | |
tree | 18cbd5a3e65d491edff149c4d7f10a863b93d67a | |
parent | 43f37ce943d81dd001ec25627e163af73d02f4c5 (diff) | |
download | asp32-0a6a4d08c69706542c88b831b456fcba8293dc2d.tar.xz |
Use exit status rather than string emptiness
-rw-r--r-- | package.inc.sh | 2 |
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 |