From 56f5c3f3f67b5d2cd980b4f1c742ac1cae5af1ec Mon Sep 17 00:00:00 2001 From: James Tomasino Date: Mon, 9 Apr 2018 21:53:53 -0400 Subject: [PATCH] two minor printf mistakes with --- chars --- burrow | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/burrow b/burrow index 0f6985d..8d67297 100755 --- a/burrow +++ b/burrow @@ -95,8 +95,7 @@ function check_coreutils { } function parse_input { - getopt -T > /dev/null - if [ $? -eq 4 ]; then + if getopt -T > /dev/null -eq 4; then # GNU enhanced getopt is available parsed=$(getopt \ --options=$arg_options \ @@ -335,11 +334,11 @@ function make_post_temp { cat "${post_dir}/.template" > "$temp_post" else { - printf "----------------------------------------\n%s\n" "$title" + printf "%s\n%s\n" "----------------------------------------" "$title" if $use_date; then date +"%B %d$(day_suffix), %Y" fi - printf "----------------------------------------\n\n\n" + printf "%s\n\n\n" "----------------------------------------" } > "$temp_post" fi