Correct an error
parent
60ecccc559
commit
86ed0f2a2a
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue