From 7241209902ee72d4d9d3c0b43a49b624b90cfb2a Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Mon, 29 Apr 2024 23:27:15 +0200 Subject: [PATCH] github-merge-pr: correctly reference .config from script directory Currently the script reference the .config from the current directory instead of using the directory where the script is located. Use dirname $0 to correctly reference the .config in the script directory instead of the current directory where the script is executed. Fixes: a598bb477585 ("github-merge-pr: move script config to separate file") Signed-off-by: Christian Marangi --- github-merge-pr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-merge-pr.sh b/github-merge-pr.sh index 16a661d..cce2586 100755 --- a/github-merge-pr.sh +++ b/github-merge-pr.sh @@ -30,7 +30,7 @@ GITHUB_REPO_OWNER="openwrt" # GITHUB_USE_SSH=1 # Everything in .config will overwrite the default values set up -[ -f .config ] && source .config +[ -f "$(dirname $0)/.config" ] && source $(dirname $0)/.config PRID="$1" BRANCH="${2:-main}" -- 2.30.2