mirror of
https://github.com/bol-van/zapret.git
synced 2025-12-07 12:06:51 +03:00
base.sh quote parameters in replace_char
This commit is contained in:
@@ -297,10 +297,10 @@ minsleep()
|
|||||||
|
|
||||||
replace_char()
|
replace_char()
|
||||||
{
|
{
|
||||||
local a=$1
|
local a="$1"
|
||||||
local b=$2
|
local b="$2"
|
||||||
shift; shift
|
shift; shift
|
||||||
echo "$@" | tr $a $b
|
echo "$@" | tr "$a" "$b"
|
||||||
}
|
}
|
||||||
|
|
||||||
replace_str()
|
replace_str()
|
||||||
|
|||||||
Reference in New Issue
Block a user