From 023531286409a84535e6bcecae75e92e79e66ed8 Mon Sep 17 00:00:00 2001 From: chausman <chausman@nrao.edu> Date: Mon, 13 Sep 2021 16:48:50 -0600 Subject: [PATCH] correcting move images out of subdirs --- schema/versions/0953fe9fb794_fix_subdir_removal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/versions/0953fe9fb794_fix_subdir_removal.py b/schema/versions/0953fe9fb794_fix_subdir_removal.py index 9c0ec71b2..5909cca42 100644 --- a/schema/versions/0953fe9fb794_fix_subdir_removal.py +++ b/schema/versions/0953fe9fb794_fix_subdir_removal.py @@ -24,7 +24,7 @@ fetch_foundation(){ ../productfetcher{{product_locator}} echo "Moving images out of subdirectories...." - for dir in *.fits; do mv $dir $dir.l; done; + for dir in *.fits; do mv $dir $dir.1; done; find . -mindepth 1 -type f -print -exec mv {} . \; find . -mindepth 1 -type d -empty -delete -- GitLab