Update scripts/cli.sh

Co-authored-by: Mac L <mjladson@pm.me>
This commit is contained in:
chonghe
2023-10-10 20:57:01 +08:00
committed by Tan Chee Keong
parent 6a812183f6
commit 3ef1f25af1

View File

@@ -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