From 7cbe19799134b062b034978bcfd517b70e1092e0 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sun, 2 Aug 2020 21:06:46 -0400 Subject: [PATCH] Temporary Zenity check in mem_check() function --- lug-helper.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lug-helper.sh b/lug-helper.sh index abb73d5..77de23e 100644 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -136,6 +136,12 @@ final_check() { # Check vm.max_map_count for the correct setting and let the user fix it if needed mem_check() { + # Zenity Check + if [ "$zenity" -eq 0 ]; then + echo "Zenity is not installed. Text menus have not yet been implemented" + exit 0 + fi + # If vm.max_map_count is already set, no need to do anything if [ "$(cat /proc/sys/vm/max_map_count)" -ge 16777216 ]; then main_dialog --info --text="vm.max_map_count is already set to the optimal value. You're all set!"