From 278f8db42784b8e740c59613c55d6c27056db3d5 Mon Sep 17 00:00:00 2001 From: kake26 Date: Sat, 22 May 2021 03:33:59 +0200 Subject: [PATCH] Update 'cpuwrangler.bash' Fixed a few dumb errors with bash variables --- cpuwrangler.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpuwrangler.bash b/cpuwrangler.bash index 767b2e8..2194580 100644 --- a/cpuwrangler.bash +++ b/cpuwrangler.bash @@ -2,9 +2,9 @@ # Some variables -$sysdu = "" # location to pull the systemd unit from github -$cur_gov = $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) -$cpugov = "conservative" # set what you want here +sysdu="" # location to pull the systemd unit from github +cur_gov=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) +cpugov="conservative" # set what you want here # First, are running as root? @@ -15,5 +15,5 @@ fi # Default action is to reapply settings -echo "$cpugov" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor +echo $cpugov | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor