summaryrefslogtreecommitdiffstats
path: root/merge_imgdir_zzh.sh
diff options
context:
space:
mode:
Diffstat (limited to 'merge_imgdir_zzh.sh')
-rwxr-xr-xmerge_imgdir_zzh.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/merge_imgdir_zzh.sh b/merge_imgdir_zzh.sh
index 3f62b95..881eccf 100755
--- a/merge_imgdir_zzh.sh
+++ b/merge_imgdir_zzh.sh
@@ -27,9 +27,14 @@ while [ ! -z "$1" ]; do
cd ${INIT_DIR}
cd ${repro_dir}
echo "*** ${PWD} ***"
+ if [ ! -d "${IMG2_DIR}" ]; then
+ echo "WARNING: '${IMG2_DIR}' does not exists; skipped!"
+ continue
+ fi
# clean ${IMG_DIR} and ${IMG2_DIR}
( cd ${IMG_DIR}; \
- rm -fv _* *.log *bak evt2_*.fits img_*.fits smooth.fits; )
+ rm -fv _* *.log *bak evt2_*.fits img_*.fits smooth.* raw.txt \;
+ rm -fv test* tmp* )
( cd ${IMG2_DIR}; \
rm -fv rspec* sbprofile* radius_sbp.txt flux_sbp.txt )
# merge