Skip to content

Commit

Permalink
Improved regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Apr 8, 2020
1 parent 101e9b5 commit 323efb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eoa.rc
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ function cpdi(){
# function to import new publication
function pimp(){
current_dir=$(pwd);
pnumber=$(grep Number $do/$1/django/publication.cfg| cut -f 2 -d ":"| tr -d '[:space:]');
pseries=$(grep Serie $do/$1/django/publication.cfg| cut -f 2 -d ":"| tr -d '[:space:]'| tr '[:upper:]' '[:lower:]');
pnumber=$(grep '^Number:' $do/$1/django/publication.cfg| cut -f 2 -d ":"| tr -d '[:space:]');
pseries=$(grep '^Serie:' $do/$1/django/publication.cfg| cut -f 2 -d ":"| tr -d '[:space:]'| tr '[:upper:]' '[:lower:]');

import_dir="import_${pseries}${pnumber}";
mediafiles="$e15/runtime_data/res.rt/all_media_files/$pseries/$pnumber";
Expand Down

0 comments on commit 323efb7

Please sign in to comment.