From 1aa39783092c55b7905490340b47b86609b7106f Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Wed, 13 Dec 2023 20:06:49 +0100 Subject: [PATCH] Update updatechecker warning and update README --- README.md | 8 ++------ bin/updatechecker | 8 +++++--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f0622808..b19127f3 100644 --- a/README.md +++ b/README.md @@ -41,13 +41,9 @@ cd "$HOME/.dotfiles" ./install.sh ``` ## 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 -cd "$HOME/.dotfiles" -./uninstall.sh -git pull -./uninstall.sh -./install.sh +dotfiles-updater ``` ## Uninstalling This will reset all programs to their original state and remove `~/.dotfiles` completely. diff --git a/bin/updatechecker b/bin/updatechecker index e9eda9d4..d93ba081 100755 --- a/bin/updatechecker +++ b/bin/updatechecker @@ -15,9 +15,11 @@ fi if [ ! "$SCRIPTED" == "true" ]; then if [ "$UPDATE" == "true" ]; then - echo -e "${COLOR_BOLD}An update for jstm's punkdateien is available." - echo -e "${COLOR_REGULAR}Latest commit: ${LATEST_COMMIT}" - echo -e "${COLOR_REGULAR} -> Message: ${LATEST_COMMIT_MESSAGE}" + echo -e "${COLOR_BOLD}An update for jstm's punkdateien is available." + echo -e "${COLOR_REGULAR}Latest commit: ${LATEST_COMMIT}" + echo " -> Message: ${LATEST_COMMIT_MESSAGE}" + echo "" + echo -e "${COLOR_BOLD}Update by executing \"dotfiles-updater\"" echo -en "${COLOR_RESET}" elif [ ! "${BASHRC}" == "true" ]; then echo -e "${COLOR_BOLD}No update available"