Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Bug fix for deploy.sh

Rich Turner28a38e0bd046
diff --git a/.ci_cd/deploy.sh b/.ci_cd/deploy.sh
index ea8f19efd..cf57a8486 100644
--- a/.ci_cd/deploy.sh
+++ b/.ci_cd/deploy.sh
@@ -47,7 +47,7 @@ fi
sshCommandPrefix="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
scpCommandPrefix="scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
-if [ -f "$SSH_PORT" ]; then
+if [! -z "$SSH_PORT" ]; then
sshCommandPrefix="$sshCommandPrefix -p $SSH_PORT"
scpCommandPrefix="$scpCommandPrefix -P $SSH_PORT"
fi