mirror of https://git.envs.net/envs/burrow.git
two minor printf mistakes with --- chars
This commit is contained in:
parent
7121dd0f29
commit
56f5c3f3f6
7
burrow
7
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue