From 63a9f7a787ad6ac2a33e1197dfb35563fc691e93 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Wed, 4 Sep 2019 13:14:50 -0400 Subject: [PATCH] Install and backup script for hosts --- scripts/hosts-file.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/hosts-file.sh diff --git a/scripts/hosts-file.sh b/scripts/hosts-file.sh new file mode 100644 index 0000000..50dacaa --- /dev/null +++ b/scripts/hosts-file.sh @@ -0,0 +1,8 @@ +#! /bin/bash + +if [[ $* == *-b* ]]; then + cp /etc/hosts ~/.config/.dotfiles/hosts +else + sudo cp ~/.config/.dotfiles/hosts /etc/hosts +fi +