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 941f381f52
commit 9d6077d915
No known key found for this signature in database
GPG Key ID: 72964219390D0D0E

View File

@ -212,7 +212,7 @@ destroy_data ()
TARGET="$TEMP_DIR/$i" TARGET="$TEMP_DIR/$i"
rm -rf "$TARGET" rm -rf "$TARGET"
done 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 [ -f ./openssl-easyrsa.cnf.orig ] && mv -f ./openssl-easyrsa.cnf.orig ./openssl-easyrsa.cnf
fi fi
FIRST_RUN=0 FIRST_RUN=0