瀏覽代碼

fix @{} regexp

tags/v20240404
Chad C. Starz 1 月之前
父節點
當前提交
85fb72bdcb
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: CEEBC9208C287297
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      shake

+ 3
- 2
shake 查看文件

@@ -79,10 +79,11 @@ if [[ -n $line ]]; then
line=${line//@FILENAME/$input_file}
line=${line//@SHORT/${input_file%.*}}
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=$(echo "$line" | sed 's/@{\(.*\)\([^\\]\)}.*$/\1\2/')

line=$(echo "$line" | sed -E 's/@\{([^ \}]+?)\}/\1/')
command="${line#*${MARK}}"
if [[ $run -eq 1 ]]; then
echo -e "${BOLD}${GREEN}output${NORMAL}:"


Loading…
取消
儲存