From 1398795aa3296565e9c9bf13361f9d0a2405b364 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Mon, 28 Jan 2019 17:22:07 +0000 Subject: [PATCH] Only request input if we're not travis --- bootstrap.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index b4c90e4..760a7c6 100755 --- a/bootstrap.sh +++ b/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 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 - read -p "Would you like to continue anyway [Y/N]? " -r - [[ $REPLY =~ ^[Yy]$ ]] + if [ "$TRAVIS" != "true" ]; then + # Allow to continue the install, as gamemode has other useful features + read -p "Would you like to continue anyway [Y/N]? " -r + [[ $REPLY =~ ^[Yy]$ ]] + fi fi # accept a prefix value as: prefix=/path ./bootstrap.sh @@ -30,8 +32,10 @@ ninja # Verify user wants to install set +x -read -p "Install to $prefix? [Yy] " -r -[[ $REPLY =~ ^[Yy]$ ]] +if [ "$TRAVIS" != "true" ]; then + read -p "Install to $prefix? [Yy] " -r + [[ $REPLY =~ ^[Yy]$ ]] +fi set -x sudo ninja install