commit ad3c848214396a7f8cf9f24a3751629eace636dd parent 7a463184c0396893b45e3f880d56dce1091a8162 Author: Marcello Stanisci <stanisci.m@gmail.com> Date: Sat, 8 Jun 2019 19:13:36 +0200 avoid find, use ls. Diffstat:
| M | bin/taler-deployment-shared-data | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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