diff --git a/how-to-clean-uninstall-macos-apps-using-appcleaner-open-source-alternative/app-cleaner.sh b/how-to-clean-uninstall-macos-apps-using-appcleaner-open-source-alternative/app-cleaner.sh index b2f5e70..6649178 100755 --- a/how-to-clean-uninstall-macos-apps-using-appcleaner-open-source-alternative/app-cleaner.sh +++ b/how-to-clean-uninstall-macos-apps-using-appcleaner-open-source-alternative/app-cleaner.sh @@ -1,8 +1,8 @@ #! /bin/bash -if [ -z "$1" ]; then +if [ -z $1 ] || [ $1 = "--help" ]; then printf "%s\n" "Usage: app-cleaner.sh /path/to/app.app" - exit 1 + exit 0 fi IFS=$'\n' diff --git a/how-to-make-sure-app-is-not-running-in-the-background-on-macos/README.md b/how-to-make-sure-app-is-not-running-in-the-background-on-macos/README.md index 591a8dc..635baca 100644 --- a/how-to-make-sure-app-is-not-running-in-the-background-on-macos/README.md +++ b/how-to-make-sure-app-is-not-running-in-the-background-on-macos/README.md @@ -85,9 +85,9 @@ function kill-apps() { IFS=$'\n' red=$(tput setaf 1) normal=$(tput sgr0) - if [ -z "$1" ]; then + if [ -z $1 ] || [ $1 = "--help" ]; then printf "%s\n" "Usage: kill-apps string" - return 1 + return 0 fi printf "%s\n" "Finding apps that match “$1”…" sleep 1