From 0787f62e1676ebc6d295d5eb82eab8532dcf204f Mon Sep 17 00:00:00 2001 From: fenze Date: Wed, 23 Nov 2022 16:58:20 +0000 Subject: fix style formatting --- rose-mklink | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'rose-mklink') 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 \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 -- cgit v1.2.3