mirror of
https://github.com/wlixcc/SFTP-Deploy-Action.git
synced 2026-10-02 09:21:31 +00:00
CHG: ajustement into documentation
This commit is contained in:
1 parent
da88a4dbe9
commit
7589349f24
2 files changed
+100
-78
No files matched your search
@@ -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