From 3ef1f25af1756410d45c68e157005dbd525e25c2 Mon Sep 17 00:00:00 2001 From: chonghe <44791194+chong-he@users.noreply.github.com> Date: Tue, 10 Oct 2023 20:57:01 +0800 Subject: [PATCH] Update scripts/cli.sh Co-authored-by: Mac L --- scripts/cli.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cli.sh b/scripts/cli.sh index 03dbb9285c..3e342cb95b 100755 --- a/scripts/cli.sh +++ b/scripts/cli.sh @@ -67,7 +67,7 @@ check() { local new_file="$2" if [[ -f $file ]]; then # check for existence of file - diff=$(diff $file $new_file) + diff=$(diff $file $new_file || :) else cp $new_file $file changes=true