fix: remove invalid local keyword usage outside function
Some checks are pending
Build & Release / Build & test (push) Waiting to run
Build & Release / Build .deb (push) Blocked by required conditions

This commit is contained in:
Khoa Vo 2026-06-29 20:55:27 +07:00
parent d9091ff66f
commit 66351de4fd

View file

@ -255,7 +255,6 @@ if [ -n "$INSTALLING_USER" ] && [ "$INSTALLING_USER" != "root" ]; then
fi
# Remove any old conflicting configurations in user home
local user_home
user_home="$(getent passwd "$INSTALLING_USER" 2>/dev/null | cut -d: -f6 || true)"
if [ -n "$user_home" ]; then
rm -f "$user_home/.config/vietc/config.toml" 2>/dev/null || true