X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=do_clean;h=054edc40980d6d518956bbc2c7588b9a4836b0cf;hb=9786b5639c8363664e88518aea3f0b0ea8496aa8;hp=99b732f2baf6400f3916037e1598d9f4bb8d1b35;hpb=82ec8e809f1a47a5562c8ac1c4795159f53772d4;p=next-scripts diff --git a/do_clean b/do_clean old mode 100644 new mode 100755 index 99b732f..054edc4 --- a/do_clean +++ b/do_clean @@ -1,11 +1,11 @@ #!/bin/bash -RM_FILES="last_msg.bak merge.debug merge.log quilt-import.log" +RM_FILES="last_msg.bak merge.debug merge.log" OTHER_RM_FILES="mails/* akpm-import.log" MV_FILES="summ" # check for files that should exist before we delete anything -for i in ${FILES} ${MV_FILES}; do +for i in ${RM_FILES} ${MV_FILES}; do [ -e "$i" ] || { printf '%s: no "%s" file\n' "$0" "$i" 1>&2 exit 1