diff --git a/init.sh b/init.sh index 72e7851dd6b7961164231904615fd4f947a063d0..af5ea71a6fbf79fb84a7bcf723779344cab3a9e6 100755 --- a/init.sh +++ b/init.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + generateKey() { touch sshKey touch sshKey.pub @@ -7,7 +9,7 @@ generateKey() { } deployKey() { - sshpass -p alarm ssh-copy-id -i ./sshKey.pub -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PubkeyAuthentication=false alarm@$1 + sshpass -p alarm ssh-copy-id -i ./sshKey.pub -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PubkeyAuthentication=false alarm@"$1" } # If keys are present, we just need to deploy it and destroy the SSH Agent