Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a4761df3f6 |
@@ -281,7 +281,7 @@ prefix_map_find() {
|
|||||||
cmd="${line#*=}"
|
cmd="${line#*=}"
|
||||||
word="${word# }"
|
word="${word# }"
|
||||||
cmd="${cmd# }"
|
cmd="${cmd# }"
|
||||||
[ -n "$word" ] && [ -n "$cmd" ] || continue
|
[[ -n "$word" && -n "$cmd" ]] || continue
|
||||||
if [[ "$text" =~ ^"$word"[[:space:]](.*)$ ]]; then
|
if [[ "$text" =~ ^"$word"[[:space:]](.*)$ ]]; then
|
||||||
rem="${BASH_REMATCH[1]}"
|
rem="${BASH_REMATCH[1]}"
|
||||||
[ -n "$rem" ] || continue
|
[ -n "$rem" ] || continue
|
||||||
|
|||||||
Reference in New Issue
Block a user