If the keys dir does not exists create it.

This commit is contained in:
Stuart H Jimenez 2014-12-09 16:23:08 -06:00
commit 00a393f4ac

View file

@ -21,6 +21,10 @@ HASH=$(keygen)
# Action #
#----------------------------------------------------------#
if [ ! -d ${KEYS} ]; then
mkdir ${KEYS}
fi
if [[ -e ${KEYS}${HASH} ]] ; then
while [[ -e ${KEYS}${HASH} ]] ; do
HASH=$(keygen)