Update hosts.plugin.bash

pull/1321/head
Farlido Tekitsu 2019-02-07 14:42:25 +01:00 committed by GitHub
parent 86ed0f2a2a
commit 30a55f7f39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,8 @@
# Requested by philipjohn here : https://github.com/Bash-it/bash-it/issues/1264
cite about-plugin
about-plugin 'add or remove hosts records'
function hosts() {
if [ ! "$(whoami)" = "root" ]; then echo "Error: Run this function as root (using sudo)" && exit 1; fi
if [ "$1" = "add" ]; then