Default version to 9999 in case of shallow clone so update notifications are never shown #319

This commit is contained in:
jderose9
2018-02-01 22:45:52 -05:00
parent 9223a67ebf
commit 223d015251
2 changed files with 3 additions and 3 deletions

View File

@@ -83,8 +83,8 @@ _build: all
mkdir -p $$lf/LC_MESSAGES; \
cp $$l $$lf/LC_MESSAGES/dash-to-panel.mo; \
done;
ifdef COMMIT
ifneq ($(and $(COMMIT),$(VERSION)),)
sed -i 's/"version": [[:digit:]][[:digit:]]*/"version": $(VERSION),\n"commit": "$(COMMIT)"/' _build/metadata.json;
else
else ifneq ($(VERSION),)
sed -i 's/"version": [[:digit:]][[:digit:]]*/"version": $(VERSION)/' _build/metadata.json;
endif

View File

@@ -6,5 +6,5 @@
"shell-version": [ "3.18", "3.20", "3.22", "3.24", "3.26" ],
"url": "https://github.com/jderose9/dash-to-panel",
"gettext-domain": "dash-to-panel",
"version": 0
"version": 9999
}