improve ad-hoc usability by defining an env var alienSync_localPathPrefix to set...
authormkrzewic <mikolaj.krzewicki@cern.ch>
Mon, 7 Apr 2014 11:39:02 +0000 (13:39 +0200)
committermkrzewic <mikolaj.krzewicki@cern.ch>
Mon, 7 Apr 2014 11:42:05 +0000 (13:42 +0200)
PWGPP/QA/scripts/alienSync.sh

index c30d526..f9fb0b3 100755 (executable)
@@ -474,7 +474,9 @@ parseConfig()
   alienFindCommand=""
   secondsToSuicide=$(( 10*3600 ))
   localPathPrefix="${PWD}"
-  logOutputPath="${PWD}/alienSyncLogs"
+  #define alienSync_localPathPrefix in your env to have a default central location
+  if [[ -n ${alienSync_localPathPrefix} ]] && localPathPrefix=${alienSync_localPathPrefix}
+  logOutputPath="${localPathPrefix}/alienSyncLogs"
   unzipFiles=0
   allOutputToLog=1