mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-06 03:26:49 +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
|
||||
{
|
||||
local str=$( ( echo $1|sed -r 's/([\$\.\*\/\[\\^])/\\\1/g'|sed 's/[]]/\\]/g' )>&1 )
|
||||
echo "$str"
|
||||
echo -n "$1" | tr '\r' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed -r 's/([\$\.\*\/\[\\^])/\\\1/g' | sed 's/[]]/\\]/g'
|
||||
}
|
||||
|
||||
function is_valid_config
|
||||
|
||||
Reference in New Issue
Block a user