Skip to content

Commit

Permalink
fix: Use printmsg instead of printf on printdbg
Browse files Browse the repository at this point in the history
  • Loading branch information
takusuman committed Jul 28, 2023
1 parent 4b4eb5e commit 5652cc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lemount.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,13 @@ function errare {
# printf(1), but for stderr per default.
# This helps us a lot when eval'ng $ledisk on a script.
function printmsg {
printf "$@" 1>&2;
printf "$@" 1>&2
}

function printdbg {
# Prints only if debugging is enabled.
if $(echo "$debugging" | grep -i '^y'); then
printf "$@"
if $(echo "$debugging" | grep -i '^y' 1>&2); then
printmsg "$@"
else
return 0 # Do nothing, literally.
fi
Expand Down

0 comments on commit 5652cc0

Please sign in to comment.