Update updatechecker warning and update README

This commit is contained in:
JeremyStar™ 2023-12-13 20:06:49 +01:00
parent 42e1eb09e2
commit 1aa3978309
2 changed files with 7 additions and 9 deletions

View file

@ -41,13 +41,9 @@ cd "$HOME/.dotfiles"
./install.sh ./install.sh
``` ```
## Updating ## Updating
This will remove all related files, pull and then link everything again. This will remove all related files, pull and then link everything again automatically.
```bash ```bash
cd "$HOME/.dotfiles" dotfiles-updater
./uninstall.sh
git pull
./uninstall.sh
./install.sh
``` ```
## Uninstalling ## 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.

View file

@ -17,7 +17,9 @@ if [ ! "$SCRIPTED" == "true" ]; then
if [ "$UPDATE" == "true" ]; then if [ "$UPDATE" == "true" ]; then
echo -e "${COLOR_BOLD}An update for jstm's punkdateien is available." echo -e "${COLOR_BOLD}An update for jstm's punkdateien is available."
echo -e "${COLOR_REGULAR}Latest commit: ${LATEST_COMMIT}" echo -e "${COLOR_REGULAR}Latest commit: ${LATEST_COMMIT}"
echo -e "${COLOR_REGULAR} -> Message: ${LATEST_COMMIT_MESSAGE}" echo " -> Message: ${LATEST_COMMIT_MESSAGE}"
echo ""
echo -e "${COLOR_BOLD}Update by executing \"dotfiles-updater\""
echo -en "${COLOR_RESET}" echo -en "${COLOR_RESET}"
elif [ ! "${BASHRC}" == "true" ]; then elif [ ! "${BASHRC}" == "true" ]; then
echo -e "${COLOR_BOLD}No update available" echo -e "${COLOR_BOLD}No update available"