mirror of
https://github.com/sunknudsen/privacy-guides.git
synced 2025-02-22 16:53:56 +00:00
Implemented --help
This commit is contained in:
parent
894ce0c1cc
commit
0fe0f28807
@ -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'
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user