fix @{} regexp
This commit is contained in:
parent
4fd50bcd60
commit
85fb72bdcb
5
shake
5
shake
@ -79,10 +79,11 @@ if [[ -n $line ]]; then
|
|||||||
line=${line//@FILENAME/$input_file}
|
line=${line//@FILENAME/$input_file}
|
||||||
line=${line//@SHORT/${input_file%.*}}
|
line=${line//@SHORT/${input_file%.*}}
|
||||||
line=${line//@ARGS/$@}
|
line=${line//@ARGS/$@}
|
||||||
line=$(echo "$line" | sed 's/\W*@STOP.*//')
|
line=$(echo "$line" | sed 's/@STOP.*//')
|
||||||
|
|
||||||
echo -e "${BOLD}${GREEN}$0${NORMAL}: ${line#*${MARK}}"
|
echo -e "${BOLD}${GREEN}$0${NORMAL}: ${line#*${MARK}}"
|
||||||
echo=$(echo "$line" | sed 's/@{\(.*\)\([^\\]\)}.*$/\1\2/')
|
|
||||||
|
line=$(echo "$line" | sed -E 's/@\{([^ \}]+?)\}/\1/')
|
||||||
command="${line#*${MARK}}"
|
command="${line#*${MARK}}"
|
||||||
if [[ $run -eq 1 ]]; then
|
if [[ $run -eq 1 ]]; then
|
||||||
echo -e "${BOLD}${GREEN}output${NORMAL}:"
|
echo -e "${BOLD}${GREEN}output${NORMAL}:"
|
||||||
|
Loading…
Reference in New Issue
Block a user