small bugfix
authormkrzewic <mikolaj.krzewicki@cern.ch>
Thu, 18 Dec 2014 15:58:20 +0000 (16:58 +0100)
committermkrzewic <mikolaj.krzewicki@cern.ch>
Thu, 18 Dec 2014 15:58:50 +0000 (16:58 +0100)
PWGPP/scripts/utilities.sh

index 0308abd..ac751b1 100755 (executable)
@@ -180,8 +180,8 @@ setYear()
   local yearTarget=$(guessYearFast ${2})
   local path=${2}
   [[ ${yearSource} -ne ${yearTarget} && -n ${yearTarget} && -n ${yearSource} ]] \
-    && path=${2/\/"${yearTarget}"\//\/"${yearSource}"\/}
-  echo ${path}
+    && path=${2/\/"${yearTarget}"/\/"${yearSource}"}
+  echo ${path/\/\//\/}
   return 0
 }