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 {
|
function parse_input {
|
||||||
getopt -T > /dev/null
|
if getopt -T > /dev/null -eq 4; then
|
||||||
if [ $? -eq 4 ]; then
|
|
||||||
# GNU enhanced getopt is available
|
# GNU enhanced getopt is available
|
||||||
parsed=$(getopt \
|
parsed=$(getopt \
|
||||||
--options=$arg_options \
|
--options=$arg_options \
|
||||||
|
@ -335,11 +334,11 @@ function make_post_temp {
|
||||||
cat "${post_dir}/.template" > "$temp_post"
|
cat "${post_dir}/.template" > "$temp_post"
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf "----------------------------------------\n%s\n" "$title"
|
printf "%s\n%s\n" "----------------------------------------" "$title"
|
||||||
if $use_date; then
|
if $use_date; then
|
||||||
date +"%B %d$(day_suffix), %Y"
|
date +"%B %d$(day_suffix), %Y"
|
||||||
fi
|
fi
|
||||||
printf "----------------------------------------\n\n\n"
|
printf "%s\n\n\n" "----------------------------------------"
|
||||||
} > "$temp_post"
|
} > "$temp_post"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue