소스 검색

Fixed bashism

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51892 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 13 년 전
부모
커밋
7f7bfcf738
3개의 변경된 파일8개의 추가작업 그리고 7개의 파일을 삭제
  1. 6 5
      temporal/run_all_tests.sh
  2. 1 1
      temporal/t.rast.gapfill/test.t.rast.gapfill.sh
  3. 1 1
      temporal/t.register/t.register.py

+ 6 - 5
temporal/run_all_tests.sh

@@ -12,13 +12,14 @@ echo "Logfile\n\n" > $LOG_FILE
 
 # For each directory
 for mydir in `ls -d t*` ; do
-    if [ -d $mydir ] ; then
-        echo $mydir
-        cd $mydir
+    if [ -d "${mydir}" ] ; then
+        echo "${mydir}"
+        cd "${mydir}"
         for myfile in `ls test.* | grep -v '~'` ; do
-            sh $myfile >> $LOG_FILE 2>&1
+	    echo "####### TEST ####### ${myfile}" >> "${LOG_FILE}" 2>&1
+            sh "${myfile}" >> "${LOG_FILE}" 2>&1
         done
         cd ..
     fi
 done
-mv $LOG_FILE .
+mv "${LOG_FILE}" .

+ 1 - 1
temporal/t.rast.gapfill/test.t.rast.gapfill.sh

@@ -18,7 +18,7 @@ prec_3|2001-05-01|2001-06-01
 EOF
 
 t.create --v --o type=strds temporaltype=absolute output=precip_abs title="A test" descr="A test"
-t.register --v type=rast input=precip_abs file=${n1}
+t.register --v type=rast input=precip_abs file="${n1}"
 
 # @test
 t.rast.gapfill input=precip_abs base="prec" nprocs=2

+ 1 - 1
temporal/t.register/t.register.py

@@ -15,7 +15,7 @@
 #############################################################################
 
 #%module
-#% description: Registers raster, vector adn raster3d maps in a space time datasets.
+#% description: Registers raster, vector and raster3d maps in a space time datasets.
 #% keywords: temporal
 #% keywords: register
 #%end