From b1dc9b2ca78923939ac7fa0e899c6452cf91dac7 Mon Sep 17 00:00:00 2001 From: jackun Date: Wed, 5 Aug 2020 11:52:58 +0300 Subject: [PATCH] [build.sh] "Refreshen" build dirs before install Running `sudo ninja install` isn't ideal but for convenience do it anyway. Re-run `build` before install to somewhat mitigate files getting "chowned" by root. --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 1da0d2f3..b2c44a7d 100755 --- a/build.sh +++ b/build.sh @@ -200,6 +200,7 @@ install() { rm -f "$HOME/.local/share/vulkan/implicit_layer.d/"{mangohud32.json,mangohud64.json} [ "$UID" -eq 0 ] || mkdir -pv "${CONFIG_DIR}" + [ "$UID" -eq 0 ] || build [ "$UID" -eq 0 ] || exec $SU_CMD bash "$0" install uninstall >/dev/null