diff options
Diffstat (limited to 'rose-mklink')
-rwxr-xr-x | rose-mklink | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rose-mklink b/rose-mklink index eb878cf..a56f321 100755 --- a/rose-mklink +++ b/rose-mklink @@ -1,11 +1,12 @@ #!/bin/sh -if [ "$1" = "--help" ] || [ -z "$1" ]; then +test "$1" = "--help" || test -z "$1" && { echo -e "usage: rose-mklink <alias> <url>\n" echo "Create a /usr/bin link to a website." -fi + exit +} -test -z "$1" || test -z "$2" || { +test -z "$2" || { [ -f "/usr/bin/$1" ] && { echo "/usr/bin/$1 already exists, remove it first" exit 1 |