mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
move then to same line as if
This commit is contained in:
@@ -59,8 +59,7 @@ diff=()
|
|||||||
|
|
||||||
# function to check
|
# function to check
|
||||||
check() {
|
check() {
|
||||||
if [[ -f $1 ]]; # check for existence of file
|
if [[ -f $1 ]]; then # check for existence of file
|
||||||
then
|
|
||||||
diff=$(diff $1 $2)
|
diff=$(diff $1 $2)
|
||||||
diff+=($diff)
|
diff+=($diff)
|
||||||
exist+=(false)
|
exist+=(false)
|
||||||
@@ -70,8 +69,7 @@ else
|
|||||||
exist+=(true)
|
exist+=(true)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $diff ]]; # check for difference
|
if [[ -z $diff ]]; then # check for difference
|
||||||
then
|
|
||||||
update+=(false)
|
update+=(false)
|
||||||
return 1 # exit a function (i.e., do nothing)
|
return 1 # exit a function (i.e., do nothing)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user