X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=processor%2Fhelpers.sh;h=20905ab6a9e5f06eb01763088ad2e4310784fabb;hb=b86576c5f61cff36c80c9e0efd9d77f50dac745b;hp=cc12358cdd1618c3b6c27f0fdbe2a1b26091af72;hpb=4373137de8ac6ad8731e6828a9876de9efe0a82e;p=redo-blog diff --git a/processor/helpers.sh b/processor/helpers.sh index cc12358..20905ab 100644 --- a/processor/helpers.sh +++ b/processor/helpers.sh @@ -16,7 +16,7 @@ escape_url() { } get_basepath() { - url_file=url.meta + url_file="$1"url redo-ifchange "$url_file" base_url=`cat "$url_file" | head -1` url_protocol=`echo $base_url | cut -d ':' -f 1` @@ -27,8 +27,8 @@ get_basepath() { } get_source_file() { - md_file="${1%.*}.md" - rst_file="${1%.*}.rst" + md_file="../${1%.*}.md" + rst_file="../${1%.*}.rst" if [ -f "$rst_file" ]; then src_file="$rst_file" elif [ -f "$md_file" ]; then