Add ignoring of local changes

This commit is contained in:
Ivan Bushchik 2022-07-09 18:28:02 +03:00
parent 984a4a9805
commit d43eeeb3cd
No known key found for this signature in database
GPG key ID: 3E4E9C7D66E44BF7

View file

@ -9,6 +9,11 @@ CLEAR_COLOR="\033[0m"
cd $HOME/.dotfiles
echo "1) ${GREEN}Upgrading dotfiles$CLEAR_COLOR"
# ignore local changes
git reset --hard HEAD > /dev/null 2>&1
if ! git pull > /dev/null 2>&1
then
echo "$HOME/.dotfiles synced"