diff options
| author | Suleyman Farajli <suleyman@farajli.net> | 2025-11-25 22:40:16 +0400 |
|---|---|---|
| committer | Suleyman Farajli <suleyman@farajli.net> | 2025-11-25 22:40:16 +0400 |
| commit | 7c19172f87b6fe35dffd8f9a252c3c10efe13aa2 (patch) | |
| tree | f42dd1ffd3440200977ea4c38950458f57bd534c /scripts/lib/lib_common.sh | |
| parent | af078c55f03e2884b883abb095c623b96fa97ec5 (diff) | |
fix(scripts): fix shellcheck errors and warnings
Diffstat (limited to 'scripts/lib/lib_common.sh')
| -rw-r--r-- | scripts/lib/lib_common.sh | 7 |
1 files changed, 5 insertions, 2 deletions
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}" } |
