mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Detect .ssh folder and create if needed
This commit is contained in:
parent
e1180e7395
commit
34d43eb238
@ -613,8 +613,13 @@ function detect_sshkeygen {
|
||||
then
|
||||
MESSAGE="Using DROPBEARKEY Instead"
|
||||
echo_info
|
||||
KEYGEN_COMMAND="dropbearkey -t rsa -f"
|
||||
|
||||
if [ -d $HOME/.ssh ]
|
||||
then
|
||||
KEYGEN_COMMAND="dropbearkey -t rsa -f"
|
||||
else
|
||||
mkdir $HOME/.ssh >/dev/null 2>&1
|
||||
KEYGEN_COMMAND="dropbearkey -t rsa -f"
|
||||
fi
|
||||
else
|
||||
MESSAGE="No Alternatives Located"
|
||||
echo_info
|
||||
|
Loading…
Reference in New Issue
Block a user