From 491032b297a6c9fdcc336152ff0b198ea2031d9f Mon Sep 17 00:00:00 2001 From: eudoxia Date: Thu, 31 Dec 2020 04:52:57 -0500 Subject: plain.sh: misc fixes --- plain-header | 6 ++++-- plain.sh | 9 +++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/plain-header b/plain-header index 65cdda0..2c163f7 100755 --- a/plain-header +++ b/plain-header @@ -1,7 +1,8 @@ - + - + + @@ -18,6 +19,7 @@ pre a:hover {text-decoration: none; color: #111; background-color: #ddd;} pre a:active {text-decoration: none; color: #ddd;} # + diff --git a/plain.sh b/plain.sh index 79283be..153ae31 100755 --- a/plain.sh +++ b/plain.sh @@ -19,12 +19,9 @@ set -e # along with this program. If not, see . -IN="$1" -OUT="$2" - [ "$1" ] || { echo "usage: ./plain.sh " ; exit 1 ; } -[ -f $IN ] || { printf "%s \tFATAL: %s not found\n" "[->]" "$IN" ; exit 1 ; } +[ -f $1 ] || { printf "%s \tFATAL: %s not found\n" "[->]" "$1" ; exit 1 ; } [ -f plain-header ] || { printf "%s \tFATAL: plain-header not found\n" "[->]" ; exit 1 ; } @@ -45,8 +42,8 @@ TITLE=$(grep -e '^