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) 0)
if [[ "${swayidle_state}" == 'Disabled' ]]; then if [[ "${swayidle_state}" == 'Disabled' ]]; then
local cmd_cache=(${(0)"$(<"${CACHE_PATH}")"}) local cmd_cache=(${(0)"$(<"${CACHE_PATH}")"})
( set -x
set -x cd "${cmd_cache[1]}"
cd "${cmd_cache[1]}" exec ${=${cmd_cache[2]}}
eval "${cmd_cache[2]}" &
)
fi fi
;; ;;
1) 1)