mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Fixed bug in final output logic
This commit is contained in:
parent
432a29f8c1
commit
ca2e518a78
@ -25,8 +25,7 @@ done
|
||||
# Output information to user about what happened
|
||||
if [[ -z "$lines_to_delete" ]]; then
|
||||
echo "All arguments passed were invalid lines in $known_hosts_path"
|
||||
elif [[ -n "$string" ]]; then
|
||||
else
|
||||
sed -i "$lines_to_delete" "$known_hosts_path"
|
||||
echo "Deleted lines $(echo $(echo $lines_to_delete | sed 's/d;/, /g') | sed 's/.$//' )"
|
||||
echo "Deleted lines $(echo $(echo "$lines_to_delete" | sed 's/d;/, /g') | sed 's/.$//' )"
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user