rmdir with the ignore fail on non-empty is a linux thing

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This commit is contained in:
Eric F Crist 2019-01-25 08:18:23 -06:00
parent 04888672d4
commit 74acd2df6e

View File

@ -212,7 +212,7 @@ destroy_data ()
TARGET="$TEMP_DIR/$i"
rm -rf "$TARGET"
done
[ -d "$TEMP_DIR" ] && rmdir --ignore-fail-on-non-empty "$TEMP_DIR"
[ -d "$TEMP_DIR" ] && rm -rf "$TEMP_DIR"
[ -f ./openssl-easyrsa.cnf.orig ] && mv -f ./openssl-easyrsa.cnf.orig ./openssl-easyrsa.cnf
fi
FIRST_RUN=0