From 37dfc0548c810829128c2448a2c2ba60b46f489b Mon Sep 17 00:00:00 2001 From: speedie Date: Wed, 21 Jun 2023 16:18:17 +0200 Subject: [PATCH] cleanup macOS check --- scripts/spmenu_run | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/spmenu_run b/scripts/spmenu_run index 9a13bc4..8d3181b 100755 --- a/scripts/spmenu_run +++ b/scripts/spmenu_run @@ -74,11 +74,10 @@ declare -a tmpdir declare -a desktopdir declare -a icondir -# TODO: mac support fail_mac() { [ -f "/usr/local/share/spmenu/allowusageonmac" ] && return - cat << EOF -spmenu_run currently does not support macOS due to the outdated Bash version. +cat << EOF +spmenu_run does not support macOS due to the outdated Bash version. See https://spmenu.speedie.site/Using+spmenu+on+macOS for more information. If you wish to ignore this warning anyway, touch /usr/local/share/spmenu/allowusageonmac. @@ -729,7 +728,7 @@ clear_cache() { } main() { - [ -d "/System/Library/Extensions" ] && fail_mac "$@" + [ -d "/System/Library/Extensions" ] && fail_mac rm -f "$LOGFILE" print_config read_args "$@"