From 07417b486967bb96dd53e382af96ab5aee973548 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 24 Jul 2010 21:54:18 +0200 Subject: hackish fix --- scripts/cpio | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3