From 3a626a7f2cd15bca6a66d012f622a9c00c9fb5e0 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Fri, 6 Apr 2012 00:16:22 +0200 Subject: [PATCH] Fix inverted argument checking logic --- scripts/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/functions b/scripts/functions index a4c46b9..2eac61f 100644 --- a/scripts/functions +++ b/scripts/functions @@ -91,7 +91,7 @@ function isDirectoryEmpty shopt -s nullglob || * ignore_lostfound=1 - test -z "$2" -o "$2" = 0 || ignore_lostfound= + test -n "$2" -a "$2" != 0 || ignore_lostfound= for i in "$1"/*; do case "$i" in -- 1.8.1.5