2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-12-27 19:31:44 +00:00

support encode hyphens in xcatlib.sh (#5570)

This commit is contained in:
Yuan Bai
2018-08-31 17:37:46 +08:00
committed by yangsong
parent e12f8e2c18
commit 7a470072b4

View File

@@ -1,6 +1,6 @@
function hashencode(){
local str_map="$1"
echo `echo $str_map | sed 's/\./xDOTx/g' | sed 's/:/xCOLONx/g' | sed 's/,/:xCOMMAx/g'`
local str_map="$1"
echo `echo $str_map | sed 's/\./xDOTx/g' | sed 's/:/xCOLONx/g' | sed 's/,/:xCOMMAx/g' | sed 's/-/xHYPHENx/g'`
}
function hashset(){