summaryrefslogtreecommitdiff
path: root/src/librefetch/librefetch
diff options
context:
space:
mode:
Diffstat (limited to 'src/librefetch/librefetch')
-rwxr-xr-xsrc/librefetch/librefetch4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index ce60396..9aa4641 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -149,7 +149,7 @@ parse_options() {
local opt
local have_opt
- while [[ $# > 0 ]]; do
+ while [[ $# -gt 0 ]]; do
arg=$1
have_opt=false
if in_array "${arg%%=*}" "${makepkg_opt2long[@]}"; then
@@ -270,7 +270,7 @@ prepare() { rm -rf "$pkgdir"; }
build() { mksource; }
check() { :; }
package() {
- if [[ $(ls "$pkgdir" | wc -l) == 0 ]]; then
+ if [[ $(ls "$pkgdir" | wc -l) -eq 0 ]]; then
# pkgdir is empty; provide good default behavior
cp -a "${srcdir}"/*/ "$pkgdir/"
fi