minor refactor

This commit is contained in:
constantin
2024-09-04 15:46:04 +02:00
parent bb266e3094
commit 0f0fe951ee
8 changed files with 5 additions and 19 deletions

16
update Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
cd ~/.dotfiles
echo "Checking for dotfile updates..."
git fetch
if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ];
then
read -p "Dotfiles can be updated. Do you want to proceed? (y/n)" choice
case "$choice" in
y|Y ) echo "Updating..." && git pull >> /dev/null && echo "Updated successfully";;
* ) echo "Skipping";;
esac
else
echo "Dotfiles are up-to-date"
fi;