X-Git-Url: https://hackdaworld.org/gitweb/?p=hdw-linux%2Fhdw-linux.git;a=blobdiff_plain;f=misc%2Fhdw-tools%2Fhdw-get;h=10be612b2887ae695b430b4eafb4948305e5f3c1;hp=6c9987cd50fcb83c356ca1a6214776c14406732f;hb=279a8b0643080f522eb4b0eb515229f21159ea2f;hpb=659aa3972e4ba06526fd4390168cf747fa943a68 diff --git a/misc/hdw-tools/hdw-get b/misc/hdw-tools/hdw-get index 6c9987c..10be612 100644 --- a/misc/hdw-tools/hdw-get +++ b/misc/hdw-tools/hdw-get @@ -66,7 +66,7 @@ mkdir -p /tmp/.hdw-get if [ "$remove" = "1" ] ; then # looking for flist file fl_pris="" - for fl_file in $inst_root/var/adm/flists/$package-[0-9]*; do + for fl_file in $inst_root/var/adm/flists/$package-[x,0-9]*; do fl_pris="`echo $fl_file | awk -F- '{ print $NF }'` $fl_pris" done fl_max="0" @@ -170,6 +170,7 @@ elif [ "$install" = "1" ] ; then retval=$? if [ "$retval" != "0" ] ; then echo "package not found at $net_addr, aborting ..." + exit else echo "extracting $package to $inst_root ..." tar --use-compress-program=bzip2 \