Skip to content

Commit 00a393f

Browse files
author
Stuart H Jimenez
committed
If the keys dir does not exists create it.
1 parent 95b77d8 commit 00a393f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/v-generate-api-key

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ HASH=$(keygen)
2121
# Action #
2222
#----------------------------------------------------------#
2323

24+
if [ ! -d ${KEYS} ]; then
25+
mkdir ${KEYS}
26+
fi
27+
2428
if [[ -e ${KEYS}${HASH} ]] ; then
2529
while [[ -e ${KEYS}${HASH} ]] ; do
2630
HASH=$(keygen)

0 commit comments

Comments
 (0)