diff options
author | Pierre Fenoll <[email protected]> | 2017-12-14 16:27:35 +0100 |
---|---|---|
committer | Pierre Fenoll <[email protected]> | 2018-03-14 11:41:52 +0100 |
commit | eae6cdad41fa94547bce50a64ce398c958a8f9c5 (patch) | |
tree | 94030da505c4ba521ba58ac871446c6518134fb5 /kerl | |
parent | 136105e82cff0a97a0ca653cbfee36a408260a4c (diff) | |
download | kerl-eae6cdad41fa94547bce50a64ce398c958a8f9c5.tar.gz kerl-eae6cdad41fa94547bce50a64ce398c958a8f9c5.tar.bz2 kerl-eae6cdad41fa94547bce50a64ce398c958a8f9c5.zip |
In kerl line 1445:
count=$(ls -la "$1" | wc -l)
^-- SC2012: Use find instead of ls to better handle non-alphanumeric filenames.
Diffstat (limited to 'kerl')
-rwxr-xr-x | kerl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |