Prevent "cannot move split to a subdirectory of itself" warning in MARC export scripts
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 2 Jun 2017 17:03:14 +0000 (10:03 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 2 Jun 2017 17:03:14 +0000 (10:03 -0700)
marc_export_custom/mucn-full-export-parallel-ebsco-wrapper.sh
marc_export_custom/sitka-full-export-parallel-outlook-wrapper.sh

index 4bb731d..bcc992e 100755 (executable)
@@ -21,7 +21,7 @@ time ./mucn-${NAME}-full-export-parallel.sh >$OUTDIR/script.log 2>&1
 rc=$?
 cd $OUTDIR
 mkdir split
-mv *split* split/
+mv *-split* split/
 echo Compressing $(date -uR)/@$(date +%s)
 pbzip2 -9nk -p4 *{marc,log}
 pbzip2 -9n -p4 split/*{marc,log}
index b66c4f8..08c9735 100755 (executable)
@@ -25,7 +25,7 @@ time ./sitka-full-export-parallel.sh >$OUTDIR/script.log 2>&1
 rc=$?
 cd $OUTDIR
 mkdir split
-mv *split* split/
+mv *-split* split/
 echo Compressing $(date -uR)/@$(date +%s)
 pbzip2 -9nk -p4 *{marc,log}
 pbzip2 -9n -p4 split/*{marc,log}