base-files: sysupgrade: fix -f with space in bkp path

Spaces in the backup.tgz filename was breaking sysupgrade.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17847
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Luiz Angelo Daros de Luca
2021-01-03 22:40:04 -03:00
committed by Hauke Mehrtens
parent b9b66d3395
commit 1d3f33b6b1
+1 -1
View File
@@ -395,7 +395,7 @@ json_get_var forceable "forceable"
}
if [ -n "$CONF_IMAGE" ]; then
case "$(get_magic_word $CONF_IMAGE cat)" in
case "$(get_magic_word "$CONF_IMAGE" cat)" in
# .gz files
1f8b) ;;
*)