forked from NOAA-EMC/obs-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
38 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# om_cleanup.sh | ||
# | ||
# 1. Sync image files with $COMOUTplots directory | ||
# 2. Conditionally remove temp working space | ||
# | ||
|
||
echo "Begin om_cleanup.sh"; echo | ||
|
||
img_dirs=`ls -d ./*_plots/` | ||
for dir in $img_dirs; do | ||
echo "syncing ${DATA}/${dir} and ${COMOUTplots}/${dir}" | ||
rsync -a ${DATA}/${dir} ${COMOUTplots}/${dir} | ||
done | ||
|
||
if [ ${KEEPDATA} = NO ] ; then | ||
echo; echo "removing temp working space ${DATAROOT}/${NET}"; echo | ||
rm -rf ${DATAROOT}/${NET} | ||
fi | ||
|
||
echo "End om_cleanup.sh"; echo |