use local var

This commit is contained in:
Nguyen Huu Thuong
2020-06-12 12:18:01 +02:00
parent 469e512c9d
commit 87f6821769

4
entrypoint.sh Normal file → Executable file
View File

@@ -23,7 +23,7 @@ createKeyFile() {
check_remote_dir() { check_remote_dir() {
local USEPASS=$1 local USEPASS=$1
local REMOTE=$2 local REMOTE=$2
CMD="ssh" local CMD="ssh"
if $USEPASS; then if $USEPASS; then
CMD="sshpass -p $INPUT_PASS ssh" CMD="sshpass -p $INPUT_PASS ssh"
fi fi
@@ -41,7 +41,7 @@ executeSCP() {
local LINES=$2 local LINES=$2
local COMMAND= local COMMAND=
CMD="scp" local CMD="scp"
if $USEPASS; then if $USEPASS; then
CMD="sshpass -p $INPUT_PASS scp" CMD="sshpass -p $INPUT_PASS scp"
fi fi