To be explicit in replacing the old file

This commit is contained in:
chonghe
2023-10-03 20:43:55 +08:00
parent 5e64c26d8c
commit 57217aa4fa

View File

@@ -74,7 +74,7 @@ if [[ -z $diff ]]; then # check for difference
update+=(false)
return 1 # exit a function (i.e., do nothing)
else
cp $2 ./book/src
cp $2 $1
changes=true
update+=(true)
fi