X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=therapies%2Findex.cgi;h=515f2b0265308042562f291f0a93a61ad7af6d2f;hb=b67065bfb57b072dd1c344eedabfbb545eae6629;hp=6284c0033f504e53422e5c09cedade5fb4598811;hpb=0b7565403dd1d951ac0bddf288d11618d78cd990;p=lobster diff --git a/therapies/index.cgi b/therapies/index.cgi index 6284c00..515f2b0 100755 --- a/therapies/index.cgi +++ b/therapies/index.cgi @@ -58,7 +58,7 @@ mpxfile="${_DATA}/prescriptions/${id}.mpx" tpyfile="${_DATA}/therapies/${id}.tpy" vcf="$(pdi_load "$vcffile")" -mpx="$(sed '1s;^;\n;; s/:/;:/' "$mpxfile")" +mpx="$([ -f "$mpxfile" ] && sed '1s;^;\n;; s/:/;:/' "$mpxfile")" tpy="$(sed '1s;^;\n;; s/:/;:/' "$tpyfile")" VCF(){ pdi_value "$vcf" "$@"; }