diff --git a/update.sh b/update.sh deleted file mode 100755 index 84ec837..0000000 --- a/update.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -cd ~/.dotfiles -echo "Checking for dotfile updates..." -git fetch - -if [ $(git rev-parse HEAD) == $(git rev-parse @{u}) ] -then - if [ "$1" == -y ] - then - echo "Updating..." - git pull >> /dev/null - echo "Updated successfully" - echo "Sourcing new changes..." - source ./source - echo "Sourced new changes successfully" - else - read -p "Dotfiles can be updated. Do you want to proceed? (y/n) " choice - if [ "$choice" = "y" ] - then - echo "Updating..." - git pull >> /dev/null - echo "Updated successfully" - echo "Sourcing new changes..." - source ./source - echo "Sourced new changes successfully" - fi - fi -else - echo "Dotfiles are up-to-date" -fi