diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-28 19:08:30 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-28 19:08:30 +0200 |
commit | 68b275d9ba7931f1ed67aac3a751d0b4a7922d98 (patch) | |
tree | 2191ca134b1dda3b9fde09273bb210783aded9b3 /scripts/cpio | |
parent | b8ddb947ffe969181957745cfbcd7dfa85e3d86b (diff) |
fix cpio wrapper on Linux host
Diffstat (limited to 'scripts/cpio')
-rwxr-xr-x | scripts/cpio | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/cpio b/scripts/cpio index bba8186c9..c6143e644 100755 --- a/scripts/cpio +++ b/scripts/cpio @@ -7,23 +7,23 @@ user="-R 0:0" os=$(uname) case $os in NetBSD|MirBSD|OpenBSD) - cmd="$@ -Mdist" + cmd="$@" ;; Darwin) user="-R root:" cmd=$(echo "$@"|sed -e "s#-Hnewc#--format newc#") - cmd="$cmd --quiet" + cmd="--quiet $cmd" ;; *) - cmd="$@ -Mdist --quiet" + cmd="--quiet $@" ;; esac if [ "$2" = "r" ];then - opt=$user + opt="$user -Mdist" fi cmd=$(echo "$cmd"|sed -e "s# r # #") if [ -x /usr/bin/cpio ];then - /usr/bin/cpio $cmd $opt + /usr/bin/cpio $opt $cmd else - /bin/cpio $cmd $opt + /bin/cpio $opt $cmd fi |