mirror of
https://gitee.com/jack_whh/SFTP-Deploy-Action.git
synced 2026-03-11 23:52:54 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6009d21da7 | ||
|
|
6ed6f6ca38 |
@@ -3,7 +3,7 @@
|
||||
#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_SSH_PRIVATE_KEY_FILE='../private_wdhcr.pem'
|
||||
TEMP_SFTP_FILE='../sftp'
|
||||
|
||||
# make sure remote path is not empty
|
||||
@@ -41,6 +41,7 @@ fi
|
||||
|
||||
# keep string format
|
||||
printf "%s" "$4" >$TEMP_SSH_PRIVATE_KEY_FILE
|
||||
echo "-------"
|
||||
cat $TEMP_SSH_PRIVATE_KEY_FILE
|
||||
# avoid Permissions too open
|
||||
chmod 600 $TEMP_SSH_PRIVATE_KEY_FILE
|
||||
|
||||
Reference in New Issue
Block a user