From: Peter Palfrader Date: Fri, 25 Sep 2009 09:12:16 +0000 (+0200) Subject: remove $tempoutput in the scope we create it - else we end up with removing unbound... X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e5fb41afdef253d05c33a21ab2b1443fa703215a;p=dsa-puppet.git remove $tempoutput in the scope we create it - else we end up with removing unbound variables sometimes --- diff --git a/modules/geodns/files/common/recvconf b/modules/geodns/files/common/recvconf index 05419c90..dd9b5758 100755 --- a/modules/geodns/files/common/recvconf +++ b/modules/geodns/files/common/recvconf @@ -172,6 +172,7 @@ if [ -s "$tempscript" ]; then exit 1 fi done < "$tempscript" + rm -f -- "$tempoutput" fi # Check for any leftover files here; if there are any, exit with an error and print the list @@ -181,7 +182,6 @@ if [ ! -z "$(find . -type f)" ]; then fi rm -f -- "$temptar" -rm -f -- "$tempoutput" rm -f -- "$tempscript" cd rm -rf -- "$tempdir"