mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-04-29 17:25:34 +00:00
Install and backup script for hosts
This commit is contained in:
parent
b864018a7b
commit
63a9f7a787
8
scripts/hosts-file.sh
Normal file
8
scripts/hosts-file.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
if [[ $* == *-b* ]]; then
|
||||||
|
cp /etc/hosts ~/.config/.dotfiles/hosts
|
||||||
|
else
|
||||||
|
sudo cp ~/.config/.dotfiles/hosts /etc/hosts
|
||||||
|
fi
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user