Same fix in power-profiles as powermenu

This commit is contained in:
Evie Litherland-Smith 2023-04-06 18:18:00 +01:00
parent b7dd06c751
commit 82257facf6

View file

@ -175,7 +175,7 @@ function ask_confirmation() {
fi fi
if [ "${confirmed}" == 0 ]; then if [ "${confirmed}" == 0 ]; then
"${menu[${selection}]}" ${menu[${selection}]}
fi fi
} }
@ -184,6 +184,6 @@ if [[ $? -eq 0 && ! -z ${selection} ]]; then
${menu_confirm} =~ (^|[[:space:]])"${selection}"($|[[:space:]]) ]]; then ${menu_confirm} =~ (^|[[:space:]])"${selection}"($|[[:space:]]) ]]; then
ask_confirmation ask_confirmation
else else
"${menu[${selection}]}" ${menu[${selection}]}
fi fi
fi fi