From 99da3fe7c06b1c4229b4a2cbb9c7626a5c493661 Mon Sep 17 00:00:00 2001 From: Benjamin Alan Weaver Date: Tue, 30 Apr 2024 14:01:04 -0700 Subject: [PATCH] run chmod first --- bin/desi_utah_transfer.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/desi_utah_transfer.sh b/bin/desi_utah_transfer.sh index e8eccd8..09e0ecb 100755 --- a/bin/desi_utah_transfer.sh +++ b/bin/desi_utah_transfer.sh @@ -60,6 +60,11 @@ while getopts htv argname; do done shift $((OPTIND - 1)) # +# Set user-write on some files. +# +${verbose} && echo "chmod -R u+w ${dst}/spectro/redux/daily/tiles/cumulative" +${test} || chmod -R u+w ${dst}/spectro/redux/daily/tiles/cumulative +# # Copy the daily/tiles/cumulative description file from NERSC. # wget --quiet --unlink --output-document=${DESI_ROOT}/spectro/redux/daily_tiles_cumulative.txt ${DAILY_TILES_CUMULATIVE_OUTPUT} @@ -84,8 +89,3 @@ for d in spectro/redux/daily spectro/redux/daily/calibnight \ ${verbose} && echo "${priority} ${syn} ${exclude} ${src}/${d}/ ${dst}/${d}/ &>> ${log} &" ${test} || ${priority} ${syn} ${exclude} ${src}/${d}/ ${dst}/${d}/ &>> ${log} & done -# -# Set user-write on some files. -# -${verbose} && echo "chmod -R u+w ${dst}/spectro/redux/daily/tiles/cumulative" -${test} || chmod -R u+w ${dst}/spectro/redux/daily/tiles/cumulative