From adb994ab831a104d696f51e68217ba2e2c5b6e5b Mon Sep 17 00:00:00 2001 From: Matt Busche Date: Sun, 21 May 2023 19:23:08 -0500 Subject: [PATCH] Test file is generated successfully --- .github/workflows/gradle.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 9d05557..0be77ad 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -34,16 +34,15 @@ jobs: java -jar trap.jar ls -ltra test -f league-data-*.xlsx || exit 1 -# file1size=stat -c %s league-data-*.xlsx -# echo "file 1 size successful" -# file2size=stat -c %s ../../src/main/resources/main-template.xlsx -# echo "file 2 size successful" -# echo "file1size" -# echo $file1size -# echo "file2size" -# echo $file2size -# if("file1size" -lt "file2size");then -# echo "file 1 is smaller" -# fi - - + file1size=$(stat -c %s league-data-*.xlsx) + echo "file 1 size successful" + file2size=$(stat -c %s ../../src/main/resources/main-template.xlsx) + echo "file 2 size successful" + echo "file1size" + echo $file1size + echo "file2size" + echo $file2size + if [ "$file1size" -lt "$file2size" ]; then + echo "file 1 is smaller" + exit 1 + fi