From 01663194e2ba96ef5d3f327de58cc0c925e47f63 Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Fri, 10 Apr 2020 17:40:00 -0500 Subject: [PATCH] Fixed error on MacOS --- .local/bin/delete_certain_known_hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/delete_certain_known_hosts b/.local/bin/delete_certain_known_hosts index 637c56f1..2a20b849 100755 --- a/.local/bin/delete_certain_known_hosts +++ b/.local/bin/delete_certain_known_hosts @@ -26,6 +26,6 @@ done if [[ -z "$lines_to_delete" ]]; then echo "All arguments passed were invalid lines in $known_hosts_path" else - sed -i'' "$lines_to_delete" "$known_hosts_path" + sed -i'' -e "$lines_to_delete" "$known_hosts_path" echo "Deleted lines $(echo $(echo "$lines_to_delete" | sed 's/d;/, /g') | sed 's/.$//' )" fi