mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 11:41:51 +00:00
test
This commit is contained in:
@@ -57,10 +57,12 @@ new_files=($general $bn $vc $am)
|
||||
|
||||
exist=()
|
||||
changes=()
|
||||
diff=()
|
||||
check() {
|
||||
if [[ -f $1 ]]; # check for existence of file
|
||||
then
|
||||
diff=$(diff $1 $2)
|
||||
diff+=($diff)
|
||||
exist+=(false)
|
||||
else
|
||||
cp $2 ./book/src
|
||||
@@ -91,7 +93,7 @@ rm -f help_general.md help_bn.md help_vc.md help_am.md
|
||||
|
||||
echo "exist = ${exist[@]}"
|
||||
echo "changes = ${changes[@]}"
|
||||
echo "$diff"
|
||||
echo "difference = ${diff[@]}"
|
||||
|
||||
if [[ ${exist[@]} == *"true"* && ${update[@]} == *"true"* ]];
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user