dot

packages and services management
Log | Files | Refs | README

commit 300bbc6e09c9adb0421c6fee73707c0496602d34
parent 46992c5a4d07363eed989d1e56aadc08b1701f94
Author: josuah <mail@josuah.net>
Date:   Wed, 16 Nov 2016 02:31:42 -0500

version: Fixed new version first time call issue

Diffstat:
Mbin/version | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/version b/bin/version @@ -71,7 +71,7 @@ new_version() local md5="$(md5sum "$current" | cut -c 1-32)" local last="$(ls "$DIR" | sort | tail -n 1)" - if [ -z "${last%%*-$md5}" ] + if [ -z "${last%%*-$md5}" -a -f "$last" ] then rm "$current" die "nothing changed since \"$last\""