fff-sysupgrade: Fix comparison for version in sysupgrade.sh

The previous version seemed to work only for numeric data.

Fixes #113

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
Adrian Schmutzler 2018-09-14 23:49:56 +02:00
parent dc4746eae9
commit 3856fff4be
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ VERSION=$(awk -F: '/VERSION:/ { print $2 }' release.nfo)
rm -f release.nfo
echo "Firmware found on server: $VERSION"
if [ "$VERSION" -eq "$FIRMWARE_VERSION" ]; then
if [ "$VERSION" = "$FIRMWARE_VERSION" ]; then
echo "The installed firmware version is already the current version."
echo ""