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

Fix do_update timestamp updates

parent b2dab87a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -169,12 +169,12 @@ do_update()
		code=$?
		unset -f finalise_timestamp
		test `get_shell` = bash && trap '' RETURN
		case $code in
		test -e "$1.old" && case $code in
			0) rm "$1.old" ;;
			*) mv "$1.old" "$1" ;;
		esac 2>/dev/null
		esac
	}
	trap "finalise_timestamp '$timestamp' || rm '$timestamp'" \
	trap "finalise_timestamp '$timestamp'" \
		`test $shell = bash && echo RETURN || echo EXIT`
	test -e "$timestamp" && mv "$timestamp" "$timestamp.old"
	touch "$timestamp"