mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -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
|
for LINE in "${LINES[@]}"; do
|
||||||
LINE=$(echo "$LINE" | sed -E "s/^[[:xdigit:]]+\s+//")
|
LINE=$(echo "$LINE" | sed -E "s/^[[:xdigit:]]+\s+//")
|
||||||
if [[ $LINE = *"new:"* ]]; then
|
if [[ $LINE = *"new:"* ]]; then
|
||||||
|
LINE=$(echo "$LINE" | sed -E "s/^new: //")
|
||||||
NEW+=("$LINE")
|
NEW+=("$LINE")
|
||||||
elif [[ $LINE = *"fix:"* ]]; then
|
elif [[ $LINE = *"fix:"* ]]; then
|
||||||
|
LINE=$(echo "$LINE" | sed -E "s/^fix: //")
|
||||||
FIXES+=("$LINE")
|
FIXES+=("$LINE")
|
||||||
elif [[ $LINE != *"i did not bother commenting"* ]]; then
|
elif [[ $LINE != *"i did not bother commenting"* ]]; then
|
||||||
echo "MISC LINE =$LINE"
|
echo "MISC LINE =$LINE"
|
||||||
|
LINE=$(echo "$LINE" | sed -E "s/^[a-z]+: //")
|
||||||
MISC+=("$LINE")
|
MISC+=("$LINE")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue