mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 21:21:42 +00:00
Update ssh.sh
shfmt formatting
This commit is contained in:
parent
4cda54774a
commit
08d60fcbf2
@ -93,7 +93,6 @@ ssh_deploy() {
|
|||||||
Le_Deploy_ssh_scp_cmd="scp -T"
|
Le_Deploy_ssh_scp_cmd="scp -T"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# BACKUP is optional. If not provided then default to previously saved value or yes.
|
# BACKUP is optional. If not provided then default to previously saved value or yes.
|
||||||
if [ "$DEPLOY_SSH_BACKUP" = "no" ]; then
|
if [ "$DEPLOY_SSH_BACKUP" = "no" ]; then
|
||||||
Le_Deploy_ssh_backup="no"
|
Le_Deploy_ssh_backup="no"
|
||||||
@ -206,7 +205,6 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# copy new key into file.
|
# copy new key into file.
|
||||||
if [ "$Le_Deploy_ssh_use_scp" = "yes" ]; then
|
if [ "$Le_Deploy_ssh_use_scp" = "yes" ]; then
|
||||||
# scp the file
|
# scp the file
|
||||||
@ -399,7 +397,6 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
|
|||||||
rm "$_local_full_file" >/dev/null 1>&2
|
rm "$_local_full_file" >/dev/null 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# REMOTE_CMD is optional.
|
# REMOTE_CMD is optional.
|
||||||
# If provided then this command will be executed on remote host.
|
# If provided then this command will be executed on remote host.
|
||||||
if [ -n "$DEPLOY_SSH_REMOTE_CMD" ]; then
|
if [ -n "$DEPLOY_SSH_REMOTE_CMD" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user