We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f157eac commit 9abf4dfCopy full SHA for 9abf4df
install_scripts.sh
@@ -10,7 +10,6 @@ display_help() {
10
11
file_changed_in_pr() {
12
local full_path="$1"
13
- local base_branch="${2:-origin/2023.06-software.eessi.io}" # Default to origin/2023.06-software.eessi.io
14
15
# Make sure file exists
16
[[ -f "$full_path" ]] || return 1
@@ -29,7 +28,8 @@ file_changed_in_pr() {
29
28
# Check if the file changed in the PR diff file that we have
30
(
31
cd "$repo_root" || return 2
32
- if [ -f "$PR_DIFF" ]; then # PR_DIFF should be set by the calling script
+ # $PR_DIFF should be set by the calling script
+ if [[ ! -z ${PR_DIFF} ]] && [[ -f "$PR_DIFF" ]]; then
33
grep -q "b/$rel_path" "$PR_DIFF" # Add b/ to match diff patterns
34
else
35
return 3
0 commit comments