From: Christian Marangi Date: Mon, 29 Apr 2024 21:27:15 +0000 (+0200) Subject: github-merge-pr: correctly reference .config from script directory X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7241209902ee72d4d9d3c0b43a49b624b90cfb2a;p=maintainer-tools.git 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 --- 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}"