From e33a448df58d097c7186fd295c6326ffcb1aef5d Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 4 Jun 2014 19:51:18 -0700 Subject: [PATCH] When enumerating files to process, ignore those generated by this script. --- dist/make-upload-files | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dist/make-upload-files b/dist/make-upload-files index f57ab5e08..eee1bc9f3 100755 --- a/dist/make-upload-files +++ b/dist/make-upload-files @@ -16,6 +16,11 @@ if ! [[ ${VERSION} =~ ^[0-9.]+$ ]]; then fi for FILE in "${@}"; do + # Ignore files written by this script. + [[ ${FILE} == *.directive ]] && continue + [[ ${FILE} == *.asc ]] && continue + [[ ${FILE} == *.sig ]] && continue + rm -f "${FILE}".directive cat > "${FILE}".directive <