summaryrefslogtreecommitdiff
path: root/scripts/cpio
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-26 12:58:05 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-26 12:58:05 +0200
commitb3a99d7f44680ef629ceea377cf9938fec94921d (patch)
treed3a0cc80dbc218c086e1c5b2635a987a534c0163 /scripts/cpio
parent2d4dff630b0184fff9833dbdaaa745c3371994d1 (diff)
parent07417b486967bb96dd53e382af96ab5aee973548 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts/cpio')
-rwxr-xr-xscripts/cpio6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/cpio b/scripts/cpio
index 597e17d3c..11db74b36 100755
--- a/scripts/cpio
+++ b/scripts/cpio
@@ -1,7 +1,6 @@
#!/usr/bin/env bash
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
-set -x
opt=
user="-R 0:0"
@@ -21,8 +20,9 @@ esac
if [ "$2" = "r" ];then
opt=$user
fi
+cmd=$(echo "$@"|sed -e "s# r ##")
if [ -x /usr/bin/cpio ];then
- /usr/bin/cpio $quiet $opt "$@"
+ /usr/bin/cpio $quiet $opt $cmd
else
- /bin/cpio $quiet $opt "$@"
+ /bin/cpio $quiet $opt $cmd
fi