force a local variable to avoid clashes in the global bash namespace
authormkrzewic <mikolaj.krzewicki@cern.ch>
Wed, 16 Apr 2014 15:21:01 +0000 (17:21 +0200)
committermkrzewic <mikolaj.krzewicki@cern.ch>
Wed, 16 Apr 2014 15:21:01 +0000 (17:21 +0200)
PWGPP/QA/detectorQAscripts/TPC.sh

index fc53732..58be3d1 100755 (executable)
@@ -73,6 +73,7 @@ makeHTMLindexPerPeriod()
 <p><font size="4">Runs:</font></p>
 EOF
 
+local dir
 for dir in 000*; do
   echo "<a href="${dir}">${dir}</a>" >> index.html
 done