Skip to content

Commit

Permalink
fix bug in setting version
Browse files Browse the repository at this point in the history
A bug allowed attempting to create a version setting each time a setup script was run. This was benign but took time.
  • Loading branch information
kwindrem committed Aug 5, 2021
1 parent d3201c5 commit 513242e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion CommonResources
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ endScript ()
# create the version setting if it doesn't exist yet
packageVersion=$(dbus-send --system --print-reply=literal\
--dest=com.victronenergy.settings /Settings/GuiMods/PackageVersions/$packageName\
com.victronenergy.BusItem.GetValue 2> /dev/null | awk '{print $3}')
com.victronenergy.BusItem.GetValue 2> /dev/null | awk '{print $2}')
if [ -z $packageVersion ]; then
logMessage "creating $packageName version Setting"
dbus -y com.victronenergy.settings /Settings AddSettings\
Expand Down
2 changes: 1 addition & 1 deletion timeStamp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1628123377
1628205710
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.0
v2.1

0 comments on commit 513242e

Please sign in to comment.