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 8825da4a500f6b974e2614f78ce2a05d35dc3ddf..13cd22f4d9040724a67d18839794b649493f2911 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
-               ) | cpio -Hustar -o --quiet -0 -R 1000:1000 | gzip
+               ) | (
+                cpio -Hustar -o --quiet -0 -R 1000:1000 || \
+                cpio -Hustar -o --quiet -0
+               ) | gzip
        ';
        die $!;
 }