mirror of
https://github.com/anikeen-com/acme.sh.git
synced 2026-11-02 05:49:07 +00:00
minor, a better hex_dump
This commit is contained in:
1 parent
d78ba322bf
commit
5f8daeeb6d
1 file changed
+1
-5
@@ -344,11 +344,7 @@ _is_solaris() {
|
|||||||
#input:"abc"
|
#input:"abc"
|
||||||
#output: " 61 62 63"
|
#output: " 61 62 63"
|
||||||
_hex_dump() {
|
_hex_dump() {
|
||||||
if _is_solaris; then
|
od -A n -v -t x1 | tr -d "\r\t" | tr -s " " | sed "s/ $//" | tr -d "\n"
|
||||||
od -A n -v -t x1 | tr -d "\r\n\t" | tr -s " " | tr -d "\n"
|
|
||||||
else
|
|
||||||
od -A n -v -t x1 | tr -d "\r\n\t" | tr -s " " | sed "s/ $//" | tr -d "\n"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#url encode, no-preserved chars
|
#url encode, no-preserved chars
|
||||||
|
|||||||
Reference in new issue
Block a user