From 0500d97b67f74fbd9da2048b9045d6efefde896a Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 11 Aug 2023 22:56:24 +0100 Subject: [PATCH] hack/deploy: resolve the switch-prebuilt path before passing it to sudo --- hack/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/deploy.sh b/hack/deploy.sh index a95d8e6c27..28a06a4dbc 100755 --- a/hack/deploy.sh +++ b/hack/deploy.sh @@ -15,4 +15,4 @@ if [ ! -z ${2+x} ]; then ssh_cmd="$ssh_cmd $2"; fi system="$(jq -r ".[\"${1}\"]" systems.json)" echo System is $system -$ssh_cmd -t "deployer@$1" switch-prebuilt "$system" +$ssh_cmd -t "deployer@$1" '$(readlink -f $(which switch-prebuilt))' "$system"