sysmngr: keep config when config_scope empty

This commit is contained in:
Suvendhu Hansa 2026-03-13 14:50:32 +05:30 committed by Vivek Dutta
parent bd7d6966cc
commit 64a5e4fa7d

View file

@ -266,7 +266,7 @@ case "$1" in
if [ "${keep_settings}" -eq 0 ]; then
sysupgrade_flag="${sysupgrade_flag} -n"
elif [ "${keep_settings}" -eq 1 ]; then
if [ "${config_scope}" != "All" ]; then
if [ -n "${config_scope}" ] && [ "${config_scope}" != "All" ]; then
sysupgrade_flag="${sysupgrade_flag} -n"
fi
fi