Skip to content
Snippets Groups Projects

Improvements to PWG_common_production

Merged Lukas Chlad requested to merge l.chlad/cbmroot:pwg_common_production into master
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
  • 0676593f
    Fix MacOS missing -u option for cp · 0676593f
    Lukas Chlad authored
    On MaxOS systems there is obviously different version of cp command to other Linux. Because the MacOS cp is missing -u (update if newer) option the rsync is used instead. The update option is rather important if one would run several jobs on the same machine and they will touch these files at different times this can cause issues.
@@ -54,10 +54,10 @@ for step in ${steps}; do
readStepInfo
if [ ${run} == true ]; then
mkdir -pv ${srcDir}
cp -uv ${macro} ${srcDir}
cp -uv ${config} ${srcDir}
cp -uv ${submitScript} ${srcDir}
cp -uv ${jobScript} ${srcDir}
rsync -uv ${macro} ${srcDir}
rsync -uv ${config} ${srcDir}
rsync -uv ${submitScript} ${srcDir}
rsync -uv ${jobScript} ${srcDir}
fi
done
Loading