Fixed issue that caused default SSH key path to fail when using SSH key setup

pull/57/head
MrRedacted 2022-05-19 21:02:47 -04:00
parent 580f963ef0
commit 39750dfbd2
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ function setup_shark(){
[[ -e $SSHKEYPATH ]] && printf "\n%s\n" "[!] $SSHKEYPATH does not exist" && sleep 2 && main_menu
fi
if [[ -z $SSHKEYPATH ]]; then
ssh-copy-id -i root@172.16.24.1
ssh-copy-id "root@172.16.24.1"
else
ssh-copy-id -i $SSHKEYPATH "root@172.16.42.1"
fi