Skip to content

Commit

Permalink
Replace 'echo -e' with more portable 'printf'
Browse files Browse the repository at this point in the history
  • Loading branch information
raforg committed Mar 24, 2022
1 parent 660720f commit a8c3a8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions danectl
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ tlsa_role()
for t in $tlsa
do
domain="`case \"$t\" in *.) echo $t;; *) echo $t.$certname.;; esac`"
echo -e "$prefix$domain\tIN\tTLSA\t3 1 1 $hash"
printf "$prefix$domain\tIN\tTLSA\t3 1 1 $hash\n"
done
}

Expand Down Expand Up @@ -791,7 +791,7 @@ tlsa_check()
else
[ "$missing" = 0 ] && echo "; Missing $certname current (must be published)"
missing=1
echo -e "$domain\tIN\tTLSA\t3 1 1 $hash_current"
printf "$domain\tIN\tTLSA\t3 1 1 $hash_current\n"
fi
done
missing=0
Expand All @@ -804,7 +804,7 @@ tlsa_check()
else
[ "$missing" = 0 ] && echo "; Missing $certname next (must be published)"
missing=1
echo -e "$domain\tIN\tTLSA\t3 1 1 $hash_next"
printf "$domain\tIN\tTLSA\t3 1 1 $hash_next\n"
fi
done
superfluous=0
Expand Down

0 comments on commit a8c3a8b

Please sign in to comment.