From d78e8f47a125232f39f9f6d33c49cf7a347da060 Mon Sep 17 00:00:00 2001 From: chonghe Date: Tue, 3 Oct 2023 19:04:21 +0800 Subject: [PATCH] move then to same line as if --- scripts/cli.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/cli.sh b/scripts/cli.sh index 118f907297..3d703ae153 100755 --- a/scripts/cli.sh +++ b/scripts/cli.sh @@ -59,8 +59,7 @@ diff=() # function to check check() { -if [[ -f $1 ]]; # check for existence of file -then +if [[ -f $1 ]]; then # check for existence of file diff=$(diff $1 $2) diff+=($diff) exist+=(false) @@ -70,8 +69,7 @@ else exist+=(true) fi -if [[ -z $diff ]]; # check for difference -then +if [[ -z $diff ]]; then # check for difference update+=(false) return 1 # exit a function (i.e., do nothing) else