Skip to content

Commit

Permalink
🐛 FIX: #63
Browse files Browse the repository at this point in the history
  • Loading branch information
apolopena committed Mar 22, 2021
1 parent 2e2657b commit 7819825
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bash/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ parse_ini_value() {
#
log () {
if [[ "$3" == '-e' || "$3" == '--error' ]]; then
>&2 echo -e "$1" && printf "$1\n" >> "$2"
>&2 echo -e "$1" && printf -- "$1\n" >> "$2"
else
echo -e "$1" && printf "$1\n" >> "$2"
echo -e "$1" && printf -- "$1\n" >> "$2"
fi
}

Expand All @@ -148,9 +148,9 @@ log () {
#
log_silent () {
if [[ "$3" == '-e' || "$3" == '--error' ]]; then
1>&2 printf "$1\n" >> "$2"
1>&2 printf -- "$1\n" >> "$2"
else
printf "$1\n" >> "$2"
printf -- "$1\n" >> "$2"
fi
}

Expand Down

0 comments on commit 7819825

Please sign in to comment.