diff --git a/sshrm b/sshrm index bd9ee56..3b57779 100755 --- a/sshrm +++ b/sshrm @@ -4,10 +4,10 @@ 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} ;; - esac + case ${1} in + *[!0-9]*) HOST=$(sed -n -e "${1}"p "${FILENAME}" | awk '{print $1}') ;; + *) HOST=${1} ;; + esac ssh-keygen -R "${HOST}" else echo "Error: No IP or line number provided !"