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>
(cherry picked from commit 1d3f33b6b14c4f3aac96731d255d7bcf3ba8d04b)
This commit is contained in:
Luiz Angelo Daros de Luca 2021-01-03 22:40:04 -03:00 committed by Hauke Mehrtens
parent 186782648c
commit 89a3a0d90d

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) ;;
*)