diff --git a/scripts/apatch.sh b/scripts/apatch.sh index f56771d9efdb..44591e5e2cd5 100755 --- a/scripts/apatch.sh +++ b/scripts/apatch.sh @@ -49,7 +49,7 @@ fi done for i in $($gitcmd status --porcelain | awk '{print $2}'); do filedata=$(cat "$i") - if [ -f "$file" ] && [[ "$filedata" == *"<<<<<"* ]]; then + if [ -f "$i" ] && [[ "$filedata" == *"<<<<<"* ]]; then export summaryfail="$summaryfail\nFAILED TO APPLY: $i" else $gitcmd add --force "$i"