mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-13 22:00:34 +00:00
Remove unnecessary message
If we cancel the dialog, just going to the EXIT trap is sufficient.
This commit is contained in:
parent
92b4ecd0e9
commit
8e4a6f00fe
@ -303,7 +303,7 @@ set_map_count() {
|
||||
trap check_map_count EXIT
|
||||
|
||||
if grep -E -x -q "vm.max_map_count" /etc/sysctl.conf /etc/sysctl.d/* 2>/dev/null; then
|
||||
if message 3 "It looks like you already configured your system to work with Star Citizen\nand saved the setting to persist across reboots.\nHowever, for some reason the persistence part did not work.\n\nFor now, would you like to enable the setting again until the next reboot?"; then
|
||||
if message 3 "It looks like you've already configured your system to work with Star Citizen\nand saved the setting to persist across reboots.\nHowever, for some reason the persistence part did not work.\n\nFor now, would you like to enable the setting again until the next reboot?"; then
|
||||
pkexec sh -c 'sysctl -w vm.max_map_count=16777216'
|
||||
fi
|
||||
exit 0
|
||||
@ -339,7 +339,6 @@ set_map_count() {
|
||||
trap - EXIT
|
||||
;;
|
||||
*)
|
||||
echo "Dialog canceled or unknown option selected: $RESULT"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user