Commit ff780160 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Update do_update timestamp after operations complete

parent 3a7dca9d
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -97,19 +97,20 @@ do_update()
		return
	fi

	touch "$timestamp"

	case `get_shell` in
		zsh) read "?$prompt" ans ;;
		*) read -p "$prompt" ans ;;
	esac
	case "$ans" in
		[Yy]|[Yy][Ee][Ss]) ;;
		[Nn]|[Nn][Oo]) touch "$timestamp"; return ;;
		*) return ;;
	esac

	cd ~
	git pull --ff-only origin
	(cd ~
		git pull --ff-only origin &&
		update_submodules
	cd - >/dev/null
	) || return

	touch "$timestamp"
}