From 46d9f38dea530b6177b5255c841495072a30e940 Mon Sep 17 00:00:00 2001 From: TotallyNotElite <1yourexperiment@protonmail.com> Date: Fri, 2 Nov 2018 22:36:35 +0100 Subject: [PATCH] nice. --- scripts/auto-updater | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/auto-updater b/scripts/auto-updater index 61f5fa21..338162b3 100755 --- a/scripts/auto-updater +++ b/scripts/auto-updater @@ -18,7 +18,7 @@ pushd build >/dev/null || exit 1 sudo cmake --build . --target data >/dev/null || { echo -e "\033[1;31m \n \nAuto Updater:Failed to update /opt/cathook/data directory\n\033[0m"; exit 1; } -sudo -u $(logname) bash -c 'cmake .. >/dev/null && cmake --build . --target cathook >/dev/null' || { echo -e "\033[1;31m \n \nAuto Updater: Failed to compile cathook\n\033[0m"; exit 1; } +sudo -u $(logname) bash -c 'cmake .. >/dev/null && nice -n 10 cmake --build . --target cathook >/dev/null' || { echo -e "\033[1;31m \n \nAuto Updater: Failed to compile cathook\n\033[0m"; exit 1; } rm -f ${LOCKFILE}