fix(core): respect EDITOR variable for config editing (#11693)

- Replace hardcoded nano with ${EDITOR:-nano} for file editing
- Default to nano if no EDITOR enviornmet variable is set
This commit is contained in:
ls-root
2026-02-11 16:38:46 +01:00
committed by GitHub
parent ddfe9166a1
commit b53a731c42

View File

@@ -3078,10 +3078,10 @@ settings_menu() {
case "$choice" in
1) diagnostics_menu ;;
2) nano /usr/local/community-scripts/default.vars ;;
2) ${EDITOR:-nano} /usr/local/community-scripts/default.vars ;;
3)
if [ -f "$(get_app_defaults_path)" ]; then
nano "$(get_app_defaults_path)"
${EDITOR:-nano} "$(get_app_defaults_path)"
else
# Back was selected (no app.vars available)
return