projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e11269f
)
Fix inverted argument checking logic
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Thu, 5 Apr 2012 22:16:22 +0000 (
00:16
+0200)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Thu, 5 Apr 2012 22:16:22 +0000 (
00:16
+0200)
scripts/functions
patch
|
blob
|
history
diff --git
a/scripts/functions
b/scripts/functions
index
a4c46b9
..
2eac61f
100644
(file)
--- 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