aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkerl4
1 files changed, 2 insertions, 2 deletions
diff --git a/kerl b/kerl
index 540f4f5..fb240a0 100755
--- a/kerl
+++ b/kerl
@@ -1447,8 +1447,8 @@ is_valid_install_path()
echo "ERROR: $1 is not a directory."
return 1
else
- count=$(ls -la "$1" | wc -l)
- if [ "$count" -ne 3 ]; then
+ count=$(find "$1" | wc -l)
+ if [ "$count" -ne 1 ]; then
echo "ERROR: $1 does not appear to be an empty directory."
return 1
fi