chiark / gitweb /
Cope when cpio doesn't like -o -R
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 16 Aug 2009 02:09:44 +0000 (03:09 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 16 Aug 2009 02:09:44 +0000 (03:09 +0100)
yarrg/web/source.tar.gz

index 8825da4..13cd22f 100755 (executable)
@@ -53,7 +53,10 @@ if (!$pid) {
                 git-ls-files -z;
                 git-ls-files -z --others --exclude-from=.gitignore;
                 if test -d .git; then find .git -print0; fi
                 git-ls-files -z;
                 git-ls-files -z --others --exclude-from=.gitignore;
                 if test -d .git; then find .git -print0; fi
-               ) | cpio -Hustar -o --quiet -0 -R 1000:1000 | gzip
+               ) | (
+                cpio -Hustar -o --quiet -0 -R 1000:1000 || \
+                cpio -Hustar -o --quiet -0
+               ) | gzip
        ';
        die $!;
 }
        ';
        die $!;
 }