mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
b36bf4376c
commit
f3aeeca275
1 changed files with 3 additions and 0 deletions
|
@ -16,11 +16,14 @@ IFS=$'\n' LINES=($OUTPUT)
|
|||
for LINE in "${LINES[@]}"; do
|
||||
LINE=$(echo "$LINE" | sed -E "s/^[[:xdigit:]]+\s+//")
|
||||
if [[ $LINE = *"new:"* ]]; then
|
||||
LINE=$(echo "$LINE" | sed -E "s/^new: //")
|
||||
NEW+=("$LINE")
|
||||
elif [[ $LINE = *"fix:"* ]]; then
|
||||
LINE=$(echo "$LINE" | sed -E "s/^fix: //")
|
||||
FIXES+=("$LINE")
|
||||
elif [[ $LINE != *"i did not bother commenting"* ]]; then
|
||||
echo "MISC LINE =$LINE"
|
||||
LINE=$(echo "$LINE" | sed -E "s/^[a-z]+: //")
|
||||
MISC+=("$LINE")
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue