diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-06-08 19:13:36 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-06-08 19:13:36 +0200 |
commit | ad3c848214396a7f8cf9f24a3751629eace636dd (patch) | |
tree | 3ab39fd4186b1b981fc0a4c5d4755a8bcd2bddec /bin | |
parent | 7a463184c0396893b45e3f880d56dce1091a8162 (diff) | |
download | deployment-ad3c848214396a7f8cf9f24a3751629eace636dd.tar.gz deployment-ad3c848214396a7f8cf9f24a3751629eace636dd.tar.bz2 deployment-ad3c848214396a7f8cf9f24a3751629eace636dd.zip |
avoid find, use ls.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/taler-deployment-shared-data | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/taler-deployment-shared-data b/bin/taler-deployment-shared-data index 329a008..bbbdf6c 100755 --- a/bin/taler-deployment-shared-data +++ b/bin/taler-deployment-shared-data @@ -21,8 +21,8 @@ if ! test -e $SHARED_DATA; then exit 1 fi -# Check if shared-data/ has already a hierarchy. -if find -H $SHARED_DATA -type d | grep -q [a-zA-Z]; then +# Check if shared-data/ is clean. +if ls -L -1 $SHARED_DATA | grep -q [a-zA-Z]; then echo "$SHARED_DATA not empty, exiting" exit 0 fi |