mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
If the keys dir does not exists create it.
This commit is contained in:
parent
95b77d8bff
commit
00a393f4ac
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue