From 18841a0d4eb9c6418f3dec23f7022979b1ca5a1a Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Fri, 10 Apr 2020 17:32:13 -0500 Subject: [PATCH] Adding sed workaround for 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 5ea5772e..637c56f1 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'' "$lines_to_delete" "$known_hosts_path" echo "Deleted lines $(echo $(echo "$lines_to_delete" | sed 's/d;/, /g') | sed 's/.$//' )" fi