mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
Only request input if we're not travis
This commit is contained in:
parent
57cf99ba85
commit
206700919c
14
bootstrap.sh
14
bootstrap.sh
@ -14,9 +14,11 @@ 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 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)."
|
echo "This means GameMode's CPU governor control feature will not work (other features will still work)."
|
||||||
|
|
||||||
# Allow to continue the install, as gamemode has other useful features
|
if [ "$TRAVIS" != "true" ]; then
|
||||||
read -p "Would you like to continue anyway [Y/N]? " -r
|
# Allow to continue the install, as gamemode has other useful features
|
||||||
[[ $REPLY =~ ^[Yy]$ ]]
|
read -p "Would you like to continue anyway [Y/N]? " -r
|
||||||
|
[[ $REPLY =~ ^[Yy]$ ]]
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# accept a prefix value as: prefix=/path ./bootstrap.sh
|
# accept a prefix value as: prefix=/path ./bootstrap.sh
|
||||||
@ -30,8 +32,10 @@ ninja
|
|||||||
|
|
||||||
# Verify user wants to install
|
# Verify user wants to install
|
||||||
set +x
|
set +x
|
||||||
read -p "Install to $prefix? [Yy] " -r
|
if [ "$TRAVIS" != "true" ]; then
|
||||||
[[ $REPLY =~ ^[Yy]$ ]]
|
read -p "Install to $prefix? [Yy] " -r
|
||||||
|
[[ $REPLY =~ ^[Yy]$ ]]
|
||||||
|
fi
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
sudo ninja install
|
sudo ninja install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user