Skip to content

Commit

Permalink
okm: Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Rem01Gaming <[email protected]>
  • Loading branch information
Rem01Gaming committed Oct 9, 2024
1 parent e447518 commit a281394
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions share/utils/misc/misc_util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ misc_menu() {
echo -e "\e[38;2;254;228;208m"
echo -e " _________ [] Thermal Governor: $(chmod 0644 /sys/class/thermal/thermal_zone0/policy && cat /sys/class/thermal/thermal_zone0/policy)"
echo -e " / /\\ ${header_info[0]}"
echo -e " / / \\ ${header_info1]}"
echo -e " / / \\ ${header_info[1]}"
echo -e " / / \\ ${header_info[2]}"
echo -e "/________/ \\ ${header_info[3]}"
echo -e "\\ \\ / ${header_info[4]}"
Expand All @@ -251,7 +251,7 @@ misc_menu() {
echo -e "$(printf '─%.0s' $(seq 1 $LINE))\n"
echo -e "[] Miscellaneous Settings\033[0m"

options="Set I/O Scheduler\nSet Thermal Governor\nTune custom devfreq component\n$(echo $options)"
options="Set I/O Scheduler\nSet Thermal Governor\nTune custom devfreq component\n$options"

tput civis

Expand Down
6 changes: 5 additions & 1 deletion src/okm
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ okm_update() {
}

if [ -z $1 ]; then
[ -d /data/data/com.termux ] && okm-sudo okm-menu || sudo okm
if [ -d /usr ]; then
sudo okm-menu
else
okm-sudo okm-menu
fi
exit 0
fi

Expand Down
12 changes: 10 additions & 2 deletions src/okm-menu
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,15 @@ if [ $ANDROID ]; then
VENDOR=$(getprop "ro.product.manufacturer")
fi

trap "stop_throbber && tput cnorm && tput rmcup" EXIT
exit_handler() {
if [ "$?" -eq 0 ]; then
stop_throbber
tput cnorm
tput rmcup
fi
}

trap "exit_handler" EXIT

if [ ! -f $database_path ]; then
create_database
Expand Down Expand Up @@ -104,7 +112,7 @@ EOF
*)
clear
echo -e "\033[38;5;196m[-] Not agreed, Aborted.\033[0m"
exit 0
exit 1
;;
esac
fi
Expand Down

0 comments on commit a281394

Please sign in to comment.