all repos — site @ 2e62d976dc907a96e45f0f644e3f8f9fd3299b02

source for my site, found at icyphox.sh

Exit if lynx not found
Anirudh Oppiliappan x@icyphox.sh
Wed, 09 Dec 2020 09:54:55 +0530
commit

2e62d976dc907a96e45f0f644e3f8f9fd3299b02

parent

246d442cac3408187e927ed4d08ac42477a00893

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M bin/plaintext.shbin/plaintext.sh

@@ -3,6 +3,12 @@

# from the pure sh bible; see: # https://github.com/dylanaraps/pure-sh-bible#get-the-base-name-of-a-file-path +if ! command -v lynx &> /dev/null +then + printf '%s\n' "lynx not found, not going to run" + exit +fi + for p in build/blog/**/index.html; do ppath="${p%%\/index.html}" pname="${ppath##build\/blog\/}"