Browse Source

Update "diff-pr.sh" to ignore "--chown=" on COPY/ADD

Tianon Gravi 7 years ago
parent
commit
413b9689b5
1 changed files with 3 additions and 1 deletions
  1. 3 1
      diff-pr.sh

+ 3 - 1
diff-pr.sh

@@ -166,7 +166,9 @@ copy-tar() {
 			$(awk '
 				toupper($1) == "COPY" || toupper($1) == "ADD" {
 					for (i = 2; i < NF; i++) {
-						print $i
+						if ($i !~ /^--chown=/) {
+							print $i
+						}
 					}
 				}
 			' "$d")