Skip to content
Snippets Groups Projects
Commit 47bbcb97 authored by Takumi.Matsunobu's avatar Takumi.Matsunobu
Browse files

fix rsync issue

parent 7d224e8f
No related branches found
No related tags found
No related merge requests found
Pipeline #19089 failed
......@@ -24,18 +24,18 @@ if [ "${IC_DATA_IS_LOCAL}" != "True" ]; then
FG_SOURCE=$(find ${INITIAL_CONDITIONS_PATH} -name "fc_R19B07.*5500.*" | sort -n )
# Find files
if [ ! -z "${AN_SOURCE}" ]; then
if [ -z "${AN_SOURCE}" ]; then
echo "Analysis file for date ${STARTDATE} not found!"
exit 1
fi
if [ ! -z "${AN_INC_SOURCE}" ]; then
if [ -z "${AN_INC_SOURCE}" ]; then
echo "Analysis increment file for date ${STARTDATE} not found!"
exit 1
fi
if [ ! -z "${FG_SOURCE}" ]; then
if [ -z "${FG_SOURCE}" ]; then
echo "FG file for date ${STARTDATE} not found!"
exit 1
fi
......@@ -52,9 +52,9 @@ if [ "${IC_DATA_IS_LOCAL}" != "True" ]; then
echo "${FG_SOURCE}" > fg_file.txt
# Copy the first-guess and analysis files.
rsync -v "${FG_SOURCE}" "${COMMON_DATE_FOLDER}"
rsync -v "${AN_SOURCE}" "${COMMON_DATE_FOLDER}"
rsync -v "${AN_INC_SOURCE}" "${COMMON_DATE_FOLDER}"
rsync -v --file-from=an_file.txt / "${COMMON_DATE_FOLDER}"
rsync -v --file-from=an_inc_file.txt / "${COMMON_DATE_FOLDER}"
rsync -v --file-from=fg_file.txt / "${COMMON_DATE_FOLDER}"
# Change permissions to read only.
chmod 440 ./*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment