luci-app-advanced-reboot: fix syntax
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 12 Apr 2020 05:57:38 +0000 (08:57 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Sun, 12 Apr 2020 06:02:42 +0000 (09:02 +0300)
Add the missing ")" to lines 45 and 54.
Fixes 75a4a80c1dd
Fixes #3903

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 2c812fbd58fd7399969185cc501bdba561d98d95)

applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua

index 4b651a9df049f595bde9518dc4dd770b357daeb1..a8297d7c79d05e642263a66cf16730781f784888 100644 (file)
@@ -42,7 +42,7 @@ function get_partition_os_info(op_ubi)
                        cp_info = util.trim(util.exec('. /etc/os-release && echo "$OPENWRT_RELEASE"'))
                end 
        end
-       logger(i18n.translatef("attempting to mount alternative partition (mtd%s)", tostring(op_ubi))
+       logger(i18n.translatef("attempting to mount alternative partition (mtd%s)", tostring(op_ubi)))
        alt_partition_unmount(op_ubi)
        alt_partition_mount(op_ubi)
        if fs.access("/alt/rom/etc/os-release") then
@@ -51,7 +51,7 @@ function get_partition_os_info(op_ubi)
                        op_info = util.trim(util.exec('. /alt/rom/etc/os-release && echo "$OPENWRT_RELEASE"'))
                end 
        end
-       logger(i18n.translatef("attempting to unmount alternative partition (mtd%s)", tostring(op_ubi))
+       logger(i18n.translatef("attempting to unmount alternative partition (mtd%s)", tostring(op_ubi)))
        alt_partition_unmount(op_ubi)
        return cp_info, op_info
 end