X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=deblob-2.6.25;h=eeef0aebcd7b03054426bb28ef2cf3ff3626aa1e;hb=8a9ba66c0dad9f25b22c20024a184b7f95ef4e69;hp=4b77403429988d3a777be6224a1ca0552b068766;hpb=fb24e23408f76b376c74335c9a4c773fa053bf1c;p=releases.git diff --git a/deblob-2.6.25 b/deblob-2.6.25 index 4b7740342998..eeef0aebcd7b 100755 --- a/deblob-2.6.25 +++ b/deblob-2.6.25 @@ -63,11 +63,18 @@ fi function clean_file { #$1 = filename + if test ! -f $1; then + echo $1 does not exist, something is wrong >&2 + exit 1 + fi rm -v $1 } function check_changed { - if cmp $1.deblob $1 > /dev/null; then + if test ! -f $1; then + echo $1 does not exist, something is wrong >&2 + exit 1 + elif cmp $1.deblob $1 > /dev/null; then echo $1 did not change, something is wrong >&2 exit 1 fi @@ -77,6 +84,10 @@ function check_changed { function clean_blob { #$1 = filename if $have_check; then + if test ! -f $1; then + echo $1 does not exist, something is wrong >&2 + exit 1 + fi name=$1 echo Removing blobs from $name set fnord "$@" -d