You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while [ "$input" != "n" ] && [ "$input" != "y" ] && [ "$input" != "N" ] && [ "$input" != "Y" ]
do
read -n1 -p "${green}Do you want to update ${cyan}scripts${green}?${green_d} This will overwrite any changes / differences with the repo ${magenta}(y/n)${blue} " input
echo "${reset}"
done
if [ "$input" = "y" ] || [ "$input" = "Y" ]
then
echo "${green}Updating...${reset}"
git fetch --all
git reset --hard origin/master
rm install
echo -e "${green_b}Finished.${reset} Scripts are up to date."