From: Ian Kelling Date: Wed, 9 Feb 2022 07:14:37 +0000 (-0500) Subject: better erro handling X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=72ff889897674fc088e66330a0f67aed5357c630;p=small-misc-bash better erro handling --- diff --git a/ex b/ex index 85317e7..88470cc 100755 --- a/ex +++ b/ex @@ -85,13 +85,17 @@ Note: dtrx (package & command) extracts most of these plus some others." *.xz) $quiet || echo tar xJf $f tar xJf $f + rm -f $f ;; *.gz) $quiet || echo tar xzf $f tar xzf $f + rm -f $f + ;; + *) + echo "ex: ERROR: file i didnt expect: $f" ;; esac - rm -f $f done ;; *.dsc)