From efbb2c0e0c68424a54be6f0428267728c4134796 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Wed, 6 Dec 2023 00:34:48 +0100 Subject: [PATCH] Bug --- sshrm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sshrm b/sshrm index 3b57779..a16910c 100755 --- a/sshrm +++ b/sshrm @@ -4,9 +4,9 @@ declare -r FILENAME="${HOME}/.ssh/known_hosts" declare HOST="" if [ ! "${1}" == "" ]; then - case ${1} in - *[!0-9]*) HOST=$(sed -n -e "${1}"p "${FILENAME}" | awk '{print $1}') ;; - *) HOST=${1} ;; + case "${1}" in + *[!0-9]*) HOST=${1} ;; + *) HOST=$(sed -n -e ${1}p "${FILENAME}" | awk '{print $1}') ;; esac ssh-keygen -R "${HOST}" else