Skip to content

Commit

Permalink
Check for presence
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Apr 1, 2020
1 parent c6adb47 commit 011752d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eoa.rc
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ function pimp(){
mediafiles="$e15/runtime_data/res.rt/all_media_files/$pseries/$pnumber";

cd $e15;
rm -vfr $mediafiles;
rm -vfr $e15/src/$import_dir;
if [ -d $mediafiles ]; then
rm -vfr $mediafiles;
fi
if [ -d $e15/src/$import_dir ]; then
rm -vfr $e15/src/$import_dir;
fi
cp -rv $do/$1/django src/$import_dir;
docker-compose exec webserver bash -c "python manage.py publicationimport ${import_dir}";
cd $current_dir;
Expand Down

0 comments on commit 011752d

Please sign in to comment.