mirror of
https://github.com/lan-tianxiang/JS_TOOL.git
synced 2025-07-13 20:22:35 +08:00
更新于 07-17 09:28
This commit is contained in:
6
jd.sh
6
jd.sh
@ -389,10 +389,10 @@ SecureJs() {
|
||||
file=$1
|
||||
|
||||
if [[ -z $(grep -w "该请求url不合法" $file) ]]; then
|
||||
startLine=$(sed -n '/function Env(t,e)/=' $file)
|
||||
endLine=$(sed -n 'done(t)}}(t,e)}' $file)
|
||||
startLine=$(sed -n '/function Env(t,e)/=' $file) && echo 1
|
||||
endLine=$(sed -n 'done(t)}}(t,e)}' $file) && echo 2
|
||||
|
||||
sed -i $startLine','$endLine'd' $file
|
||||
sed -i $startLine','$endLine'd' $file && echo 3
|
||||
cat $file_env_sys >>$file
|
||||
fi
|
||||
}
|
||||
|
Reference in New Issue
Block a user