Skip to content

Commit

Permalink
Test file is generated successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbusche authored May 22, 2023
1 parent 0bd31da commit adb994a
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit adb994a

Please sign in to comment.