aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/unrpm4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/unrpm b/scripts/unrpm
index 9ab37be0a..376286a6f 100644
--- a/scripts/unrpm
+++ b/scripts/unrpm
@@ -29,7 +29,7 @@ exist
29type more >/dev/null 2>&1 && pager=more 29type more >/dev/null 2>&1 && pager=more
30type less >/dev/null 2>&1 && pager=less 30type less >/dev/null 2>&1 && pager=less
31[ "$pager" = "" ] && echo "No pager found!" && exit 31[ "$pager" = "" ] && echo "No pager found!" && exit
32(echo -e "\nPress enter to scroll, q to Quit!\n" ; rpmunpack < $rpm | gzip -dc | cpio -tv --quiet) | $pager 32(echo -e "\nPress enter to scroll, q to Quit!\n" ; rpm2cpio $rpm | cpio -tv --quiet) | $pager
33exit 33exit
34elif [ "$1" = "-x" ]; then 34elif [ "$1" = "-x" ]; then
35exist 35exist
@@ -39,7 +39,7 @@ elif [ ! -d "$3" ]; then
39echo "No such directory $3!" 39echo "No such directory $3!"
40exit 40exit
41fi 41fi
42rpmunpack < $rpm | gzip -d | (umask 0 ; cd $3 ; cpio -idmuv) || exit 42rpm2cpio $rpm | (umask 0 ; cd $3 ; cpio -idmuv) || exit
43echo 43echo
44echo "Extracted $rpm to $3!" 44echo "Extracted $rpm to $3!"
45exit 45exit