File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1515dataform install
1616dataform compile
1717
18- if [[ $? -ne 0 ] ]; then
18+ if [ $? -ne 0 ]; then
1919 exit 1
2020else
2121 exit 0
Original file line number Diff line number Diff line change 1414
1515# Compute hash of all files in the project before and after formatting to detect changes
1616
17- hash_before_format=$( find . -type f -exec md5sum {} \; | awk ' {print $1}' | sort | md5sum | awk ' {print $1}' )
17+ hash_before_format=$( find ./definitions ./includes -type f -exec md5sum {} \; | awk ' {print $1}' | sort | md5sum | awk ' {print $1}' )
1818
1919dataform format
2020
21- hash_after_format=$( find . -type f -exec md5sum {} \; | awk ' {print $1}' | sort | md5sum | awk ' {print $1}' )
21+ hash_after_format=$( find ./definitions ./includes -type f -exec md5sum {} \; | awk ' {print $1}' | sort | md5sum | awk ' {print $1}' )
2222
2323if [ " $hash_before_format " != " $hash_after_format " ]; then
2424 exit 1
You can’t perform that action at this time.
0 commit comments