Identation
This commit is contained in:
parent
9d737c255b
commit
2c72645195
8
sshrm
8
sshrm
@ -4,10 +4,10 @@ declare -r FILENAME="${HOME}/.ssh/known_hosts"
|
|||||||
declare HOST=""
|
declare HOST=""
|
||||||
|
|
||||||
if [ ! "${1}" == "" ]; then
|
if [ ! "${1}" == "" ]; then
|
||||||
case ${1} in
|
case ${1} in
|
||||||
*[!0-9]*) HOST=$(sed -n -e "${1}"p "${FILENAME}" | awk '{print $1}') ;;
|
*[!0-9]*) HOST=$(sed -n -e "${1}"p "${FILENAME}" | awk '{print $1}') ;;
|
||||||
*) HOST=${1} ;;
|
*) HOST=${1} ;;
|
||||||
esac
|
esac
|
||||||
ssh-keygen -R "${HOST}"
|
ssh-keygen -R "${HOST}"
|
||||||
else
|
else
|
||||||
echo "Error: No IP or line number provided !"
|
echo "Error: No IP or line number provided !"
|
||||||
|
Loading…
Reference in New Issue
Block a user