Skip to content

Commit bb0a82d

Browse files
authored
fix error
1 parent f5f65a7 commit bb0a82d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ssh-manager.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,12 +357,13 @@ SSHSearchCredential(){
357357
#echo $serverPort
358358
#Here we go connecting to the server
359359
printf "%s${success}Connecting to ${serverName} ...${reset}\n"
360-
if [ ! -z $serverKeyFile ]
360+
if [ ! -z $serverKeyFile ];
361361
then
362362
commande="ssh -i "$serverKeyFile" -p "$serverPort" "$serverUser""@""$serverIp" "$serverOption""
363363
#echo $commande
364364
$commande
365-
elif [ ! -z $serverPassword }
365+
elif [ ! -z $serverPassword ];
366+
then
366367
commande="sshpass -p "$serverPassword" ssh -p "$serverPort" "$serverUser""@""$serverIp" "$serverOption""
367368
#echo $commande
368369
$commande

0 commit comments

Comments
 (0)