From 7c19172f87b6fe35dffd8f9a252c3c10efe13aa2 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Tue, 25 Nov 2025 22:40:16 +0400 Subject: fix(scripts): fix shellcheck errors and warnings --- scripts/lib/lib_common.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts/lib/lib_common.sh') diff --git a/scripts/lib/lib_common.sh b/scripts/lib/lib_common.sh index 629bdc7..9256967 100644 --- a/scripts/lib/lib_common.sh +++ b/scripts/lib/lib_common.sh @@ -109,6 +109,9 @@ run() { [ "${reload_compositor}" -eq 1 ] && compositor_handle stop - eval "${@}" - [ "${no_exit}" -eq 1 ] || exit "${?}" + "${@}" + status=$? + [ "${no_exit}" -ne 0 ] && return "${status}" + + exit "${status}" } -- cgit v1.2.3