Correct an error

pull/1321/head
Jus de Patate 2019-02-04 10:35:21 +01:00 committed by GitHub
parent 60ecccc559
commit 86ed0f2a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ function hosts() {
echo "Error : Provided IP is invalid" echo "Error : Provided IP is invalid"
fi fi
elif [ "$1" = "list" ]; then elif [ "$1" = "list" ]; then
cat hosts cat /etc/hosts
elif [ "$1" = "del" ] || [ "$1" = "remove" ]; then elif [ "$1" = "del" ] || [ "$1" = "remove" ]; then
shift shift
grep -v "$1" /etc/hosts > newhosts grep -v "$1" /etc/hosts > newhosts