Add check for new installs
This commit is contained in:
parent
cd7a9c526a
commit
fde2bf54fa
2 changed files with 9 additions and 1 deletions
|
@ -48,7 +48,7 @@ git pull
|
|||
./install.sh
|
||||
```
|
||||
## Uninstalling
|
||||
This will reset all programs to their original state and remove ~/.dotfiles completely.
|
||||
This will reset all programs to their original state and remove `~/.dotfiles` completely.
|
||||
```bash
|
||||
cd "$HOME/.dotfiles"
|
||||
env REMOVE_REPOSITORIES=true ./uninstall.sh
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
#!/bin/bash
|
||||
# jeremystartm's dotfiles "installer"
|
||||
|
||||
if [ ! -a "$HOME/.config/.jstm_dotfiles" ]; then
|
||||
echo ":: Removing files"
|
||||
./uninstall.sh &> /dev/null
|
||||
fi
|
||||
|
||||
# useful function
|
||||
function link() {
|
||||
if [ -a "${HOME}/${2}" ]; then
|
||||
|
@ -70,6 +75,9 @@ link "konsolerc" ".config/konsolerc"
|
|||
link "konsole" ".local/share/konsole"
|
||||
link "dolphinrc" ".config/dolphinrc"
|
||||
|
||||
# write install file
|
||||
echo "pls don't remove" > "$HOME/.config/.jstm_dotfiles"
|
||||
|
||||
# check for executables
|
||||
if ! which qt5ct &> /dev/null; then
|
||||
echo ":: Warning: qt5ct is not in your PATH."
|
||||
|
|
Loading…
Reference in a new issue