mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -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 #
|
# Action #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
|
if [ ! -d ${KEYS} ]; then
|
||||||
|
mkdir ${KEYS}
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -e ${KEYS}${HASH} ]] ; then
|
if [[ -e ${KEYS}${HASH} ]] ; then
|
||||||
while [[ -e ${KEYS}${HASH} ]] ; do
|
while [[ -e ${KEYS}${HASH} ]] ; do
|
||||||
HASH=$(keygen)
|
HASH=$(keygen)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue