From 1577451a412287de9d89ff30c83eee8b838440d9 Mon Sep 17 00:00:00 2001 From: Reto Kromer Date: Sat, 1 Oct 2016 17:34:38 +0200 Subject: [PATCH] uniforming --- check_framemd5.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check_framemd5.sh b/check_framemd5.sh index 3c1dd07..facc67c 100644 --- a/check_framemd5.sh +++ b/check_framemd5.sh @@ -37,17 +37,17 @@ EOF exit 0 } -if [ "${#}" -eq 0 ]; then +if [[ "${#}" -eq 0 ]]; then _output_prompt exit 0 -elif [ "${#}" -eq 1 ]; then +elif [[ "${#}" -eq 1 ]]; then if [[ "${1}" = '-h' ]]; then _output_help else echo -e "${RED}ERROR:${NC} '$1' is an invalid argument." _output_prompt fi -elif [ "${#}" -eq 2 ]; then +elif [[ "${#}" -eq 2 ]]; then if [[ ! -f "${1}" ]]; then echo -e "${RED}ERROR:${NC} There is no file '$(basename ${1})'." _output_prompt