darkman-setup.bash: detect the git repo as well

This commit is contained in:
Aminda Suomalainen 2024-07-17 10:13:51 +03:00
parent bca436cd4d
commit f5e14af247
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -13,6 +13,8 @@ elif [ -d /usr/local/share/doc/darkman/examples ]; then
ln -nsfv /usr/local/share/doc/darkman/examples/{dark,light}-mode.d ~/.local/share/ ln -nsfv /usr/local/share/doc/darkman/examples/{dark,light}-mode.d ~/.local/share/
elif [ -d ~/.local/share/doc/darkman/examples ]; then elif [ -d ~/.local/share/doc/darkman/examples ]; then
ln -nsfv ~/.local/share/doc/darkman/examples/{dark,light}-mode.d ~/.local/share/ ln -nsfv ~/.local/share/doc/darkman/examples/{dark,light}-mode.d ~/.local/share/
elif [ -d ~/src/gitlab.com/WhyNotHugo/darkman ]; then
ln -nsfv ~/src/gitlab.com/WhyNotHugo/darkman/examples/{dark,light}-mode.d ~/.local/share/
else else
echo "Darkman examples not found in expected locations." echo "Darkman examples not found in expected locations."
exit 1 exit 1