From 68c8b16e8dc4d249b318dc55787079f314550ba6 Mon Sep 17 00:00:00 2001 From: flakey5 <73616808+flakey5@users.noreply.github.com> Date: Fri, 12 Jul 2024 05:32:05 -0700 Subject: [PATCH] ansible: fix _resha.sh (#3826) re https://github.com/nodejs/build/pull/3620#issuecomment-2214853821 --- ansible/www-standalone/tools/promote/_resha.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/www-standalone/tools/promote/_resha.sh b/ansible/www-standalone/tools/promote/_resha.sh index 2ee77eddf..5874c733d 100755 --- a/ansible/www-standalone/tools/promote/_resha.sh +++ b/ansible/www-standalone/tools/promote/_resha.sh @@ -6,6 +6,9 @@ site=$1 dstdir=$2 version=$3 +__dirname="$(CDPATH= cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +. ${__dirname}/settings + if [ "X${site}" == "X" ]; then echo "site argument not provided" exit 1