Skip to content

Commit

Permalink
Update ./reg_tests/update_baseline.sh for new directory
Browse files Browse the repository at this point in the history
name holding the surface climo data.

Fixes ufs-community#867.
  • Loading branch information
GeorgeGayno-NOAA committed Dec 13, 2023
1 parent 7f3684e commit 292af0b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions reg_tests/update_baseline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ chmod 755 $base_dir

if [ -d $base_dir_commit ];then
chmod 777 $base_dir_commit
if [ -d $base_dir_commit/fix_sfc ]; then
chmod 777 $base_dir_commit/fix_sfc
if [ -d $base_dir_commit/sfc ]; then
chmod 777 $base_dir_commit/sfc
fi
rm -fr $base_dir_commit
fi
Expand All @@ -32,17 +32,17 @@ done
# The grid_gen tests have a subdirectory for
# the surface climo fields.

if [ -d ./fix_sfc ]; then
mkdir -p $base_dir_commit/fix_sfc
cd fix_sfc
if [ -d ./sfc ]; then
mkdir -p $base_dir_commit/sfc
cd sfc
for files in *.nc
do
if [ -f $files ]; then
cp $files $base_dir_commit/fix_sfc
chmod 444 $base_dir_commit/fix_sfc/$files
cp $files $base_dir_commit/sfc
chmod 444 $base_dir_commit/sfc/$files
fi
done
chmod 555 $base_dir_commit/fix_sfc
chmod 555 $base_dir_commit/sfc
fi

chmod 555 $base_dir_commit
Expand Down

0 comments on commit 292af0b

Please sign in to comment.