Fix system-sleep-menu.sh

This commit is contained in:
2025-10-08 17:28:08 -07:00
parent 48b6b0afde
commit d7fbed68bf

View File

@ -18,11 +18,9 @@ case "${choice}" in
0)
if [[ "${swayidle_state}" == 'Disabled' ]]; then
local cmd_cache=(${(0)"$(<"${CACHE_PATH}")"})
(
set -x
cd "${cmd_cache[1]}"
eval "${cmd_cache[2]}" &
)
exec ${=${cmd_cache[2]}}
fi
;;
1)