|
@@ -14,9 +14,9 @@ if [ ! -f "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" ]; then
|
|
|
echo "This probably means that you have disabled processor scheduling features in your BIOS. See README.md (or GitHub issue #44) for more information."
|
|
|
echo "This means GameMode's CPU governor control feature will not work (other features will still work)."
|
|
|
|
|
|
- if [ "$TRAVIS" != "true" ]; then
|
|
|
+ if [ "$CI" != "true" ]; then
|
|
|
# Allow to continue the install, as gamemode has other useful features
|
|
|
- read -p "Would you like to continue anyway [Y/N]? " -r
|
|
|
+ read -p "Would you like to continue anyway [y/N]? " -r
|
|
|
[[ $REPLY =~ ^[Yy]$ ]]
|
|
|
fi
|
|
|
fi
|
|
@@ -31,7 +31,7 @@ ninja -C builddir
|
|
|
|
|
|
# Verify user wants to install
|
|
|
set +x
|
|
|
-if [ "$TRAVIS" != "true" ]; then
|
|
|
+if [ "$CI" != "true" ]; then
|
|
|
read -p "Install to $prefix? [y/N] " -r
|
|
|
[[ $REPLY =~ ^[Yy]$ ]]
|
|
|
fi
|
|
@@ -39,10 +39,12 @@ set -x
|
|
|
|
|
|
sudo ninja install -C builddir
|
|
|
|
|
|
-# Restart polkit so we don't get pop-ups whenever we pkexec
|
|
|
-if systemctl list-unit-files |grep -q polkit.service; then
|
|
|
- sudo systemctl try-restart polkit
|
|
|
-fi
|
|
|
+if [ "$CI" != "true" ]; then
|
|
|
+ # Restart polkit so we don't get pop-ups whenever we pkexec
|
|
|
+ if systemctl list-unit-files | grep -q polkit.service; then
|
|
|
+ sudo systemctl try-restart polkit
|
|
|
+ fi
|
|
|
|
|
|
-# Reload systemd configuration so that it picks up the new service.
|
|
|
-systemctl --user daemon-reload
|
|
|
+ # Reload systemd configuration so that it picks up the new service.
|
|
|
+ systemctl --user daemon-reload
|
|
|
+fi
|