mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
test
This commit is contained in:
@@ -57,10 +57,12 @@ new_files=($general $bn $vc $am)
|
|||||||
|
|
||||||
exist=()
|
exist=()
|
||||||
changes=()
|
changes=()
|
||||||
|
diff=()
|
||||||
check() {
|
check() {
|
||||||
if [[ -f $1 ]]; # check for existence of file
|
if [[ -f $1 ]]; # check for existence of file
|
||||||
then
|
then
|
||||||
diff=$(diff $1 $2)
|
diff=$(diff $1 $2)
|
||||||
|
diff+=($diff)
|
||||||
exist+=(false)
|
exist+=(false)
|
||||||
else
|
else
|
||||||
cp $2 ./book/src
|
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 "exist = ${exist[@]}"
|
||||||
echo "changes = ${changes[@]}"
|
echo "changes = ${changes[@]}"
|
||||||
echo "$diff"
|
echo "difference = ${diff[@]}"
|
||||||
|
|
||||||
if [[ ${exist[@]} == *"true"* && ${update[@]} == *"true"* ]];
|
if [[ ${exist[@]} == *"true"* && ${update[@]} == *"true"* ]];
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user