mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-10 13:36:50 +03:00
comfunc: Fix stdout into func adapt_for_sed
This commit is contained in:
@@ -21,8 +21,7 @@ CRONTAB_FILE="/etc/crontabs/root"
|
|||||||
|
|
||||||
function adapt_for_sed
|
function adapt_for_sed
|
||||||
{
|
{
|
||||||
local str=$( ( echo $1|sed -r 's/([\$\.\*\/\[\\^])/\\\1/g'|sed 's/[]]/\\]/g' )>&1 )
|
echo -n "$1" | tr '\r' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed -r 's/([\$\.\*\/\[\\^])/\\\1/g' | sed 's/[]]/\\]/g'
|
||||||
echo "$str"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function is_valid_config
|
function is_valid_config
|
||||||
|
|||||||
Reference in New Issue
Block a user