mirror of
https://gitee.com/jack_whh/SFTP-Deploy-Action.git
synced 2026-03-09 23:12:55 +08:00
CHG: ajustement into documentation
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#set -e at the top of your script will make the script exit with an error whenever an error occurs (and is not explicitly handled)
|
||||
set -eu
|
||||
|
||||
|
||||
TEMP_SSH_PRIVATE_KEY_FILE='../private_key.pem'
|
||||
TEMP_SFTP_FILE='../sftp'
|
||||
|
||||
@@ -13,7 +12,6 @@ if [ -z "$6" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# use password
|
||||
if [ -z != ${10} ]; then
|
||||
echo 'use sshpass'
|
||||
@@ -67,4 +65,3 @@ sftp -b $TEMP_SFTP_FILE -P $3 $8 -o StrictHostKeyChecking=no -i $TEMP_SSH_PRIVAT
|
||||
|
||||
echo 'Deploy Success'
|
||||
exit 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user