Skip to content

Commit

Permalink
run chmod first
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Apr 30, 2024
1 parent 96b8ba4 commit 99da3fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/desi_utah_transfer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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

0 comments on commit 99da3fe

Please sign in to comment.