From: Zdeněk Šustr Date: Mon, 27 Feb 2012 14:22:20 +0000 (+0000) Subject: Create and remove the temporary file within the same block of code. X-Git-Tag: glite-px-myproxy-yaim_R_4_1_6_2~25 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=e1c22bbefed48a416c75637fd697af5f90c0a324;p=jra1mw.git Create and remove the temporary file within the same block of code. --- diff --git a/org.glite.testsuites.ctb/gridsite/tests/gridsite-test-all.sh b/org.glite.testsuites.ctb/gridsite/tests/gridsite-test-all.sh index b387be2..ea1066a 100755 --- a/org.glite.testsuites.ctb/gridsite/tests/gridsite-test-all.sh +++ b/org.glite.testsuites.ctb/gridsite/tests/gridsite-test-all.sh @@ -418,13 +418,13 @@ EOF printf "$VOMSCERT\n$VOMSCA\n" > /etc/grid-security/vomsdir/$VONAME/$VOMSHOSTONLY.lsc printf "Generated /etc/grid-security/vomsdir/$VONAME/$VOMSHOSTONLY.lsc\n$NL" + + rm $VOMSHOSTONLY.$$.DNs.txt else printf "/etc/grid-security/vomsdir/$VONAME/$VOMSHOSTONLY.lsc already exists\n$NL" fi # cat /etc/grid-security/vomsdir/$VONAME/$VOMSHOSTONLY.lsc | sed "s/\$/$NL/" - - rm $VOMSHOSTONLY.$$.DNs.txt fi done