Check if symlink already exists to avoid sudo asking for passwords
This commit is contained in:
parent
b2b409b918
commit
937b0b01eb
|
@ -2,5 +2,9 @@
|
||||||
|
|
||||||
GIT_ROOT=$(git rev-parse --show-toplevel)
|
GIT_ROOT=$(git rev-parse --show-toplevel)
|
||||||
|
|
||||||
sudo rm /etc/neofetch.conf
|
if [[ -L "/etc/neofetch.conf" ]]; then
|
||||||
|
echo "Symlink for neofetch already exists, skipping"
|
||||||
|
else
|
||||||
|
echo "Creating symlink for neofetch.conf"
|
||||||
sudo ln -s ${GIT_ROOT}/neofetch/neofetch.conf /etc/neofetch.conf
|
sudo ln -s ${GIT_ROOT}/neofetch/neofetch.conf /etc/neofetch.conf
|
||||||
|
fi
|
Loading…
Reference in New Issue