From f2c745de664f8cc0592a66b0663bb2869e7f1467 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Sun, 24 Dec 2023 16:19:13 +0100 Subject: showKingdom.sh now uses local files and other minor fixes. --- scp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scp.sh') diff --git a/scp.sh b/scp.sh index bf05ce0..82161be 100755 --- a/scp.sh +++ b/scp.sh @@ -3,7 +3,7 @@ hostsfile="$HOME/.hosts" host="$(sed '/^#/d; /^\s*$/d' "$hostsfile" | cut -d'#' -f1 | fzf)" || exit 0 -hostline="$(grep "^${host}" "$hostsfile")" +hostline="$(grep "^${host}#" "$hostsfile")" hostname="$(echo "$hostline" | cut -d'#' -f1)" hostaddress="$(echo "$hostline" | cut -d'#' -f2)" hostport="$(echo "$hostline" | cut -d'#' -f3)" -- cgit v1.2.1