summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/md.sh b/md.sh
index 522300f..3e44052 100755
--- a/md.sh
+++ b/md.sh
@@ -111,7 +111,7 @@ done
toc() {
-[ "$(which fzy)" ] || { printf "[warn] \tfzy not found, skipping toc\n" ; return ; }
+[ $(which fzy) ] || { printf "[warn] \tfzy not found, skipping toc\n" ; return ; }
[ -f ./urlencode ] || { printf "[warn] \turlencode not found, skipping toc\n" ; return ; }
tmp=$(mktemp -p /tmp) # using a tempfile, more convenient for storage and operations
@@ -189,7 +189,7 @@ case "$opts" in
;;
(*)
- printf "[warn] \tmetadata: unrecognized option(s) \"$s\"\n" "${opts}"
+ printf "[warn] \tmetadata: unrecognized option(s) \"%s\"\n" "${opts}"
;;
esac
done