From 311998663431d540ec061e57a12f57d0396bc6e7 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 21 Feb 2011 00:20:41 +1100 Subject: [PATCH] Update lrztar to take new options in version 0.560 --- lrztar | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lrztar b/lrztar index a9b66ed..4026eef 100755 --- a/lrztar +++ b/lrztar @@ -1,7 +1,7 @@ #!/bin/bash # Copyright (C) George Makrydakis 2009, 2010 -# Copyright (C) Con Kolivas 2010 +# Copyright (C) Con Kolivas 2011 # A bash wrapper for Con Kolivas' excellent lrzip utility. For the time # being, lrzip does not like pipes, so we had to do this. It is kind of @@ -24,12 +24,13 @@ function lrztar_local() { local p="${@:1:$(($#-1))}" s="${!#}" tname= fname= \ v_w=0 v_O=0 v_S=0 v_D=0 v_p=0 v_q=0 v_L=0 \ v_n=0 v_l=0 v_b=0 v_g=0 v_z=0 v_M=0 v_U=0 \ - v_T=0 v_N=0 v_v=0 v_f=0 v_d=0 v_h=0 x= i= + v_T=0 v_N=0 v_v=0 v_f=0 v_d=0 v_h=0 \ + v_H=0 v_c=0 v_k=0 x= i= OPTERR=0 trap '[[ -z $tname ]] || rm -rf "$tname" &> /dev/null' 1 2 3 15 which tar &> /dev/null || { printf "lrztar: no tar in your path\n"; return 1; } which lrzip &> /dev/null || { printf "lrztar: no lrzip in your path\n"; return 1; } - while getopts w:O:S:DqL:nlbgzMUT:N:p:vfodtVh x; do + while getopts w:O:S:DqL:nlbgzMUT:N:p:vfodtVhHck x; do [[ $x == [otV] ]] || ((v_$x=1)) &> /dev/null \ || { printf "lrztar: invalid option for lrztar %s\n" "$x"; return 1; } done