| ... | @@ -18,30 +18,30 @@ c=0 | ... | @@ -18,30 +18,30 @@ c=0 |
| 18 | t=0 | 18 | t=0 |
| 19 | readlog | | 19 | readlog | |
| 20 | while IFS= read -r lineVAR; do | 20 | while IFS= read -r lineVAR; do |
| 21 | if [[ "$c" == '0' ]]; then | 21 | if [ "$c" = '0' ]; then |
| 22 | hash_abrev="$lineVAR" | 22 | hash_abrev="$lineVAR" |
| 23 | fi | 23 | fi |
| 24 | if [[ "$c" == '1' ]]; then | 24 | if [ "$c" = '1' ]; then |
| 25 | hash="$lineVAR" | 25 | hash="$lineVAR" |
| 26 | fi | 26 | fi |
| 27 | if [[ "$c" == '2' ]]; then | 27 | if [ "$c" = '2' ]; then |
| 28 | author="$lineVAR" | 28 | author="$lineVAR" |
| 29 | fi | 29 | fi |
| 30 | if [[ "$c" == '3' ]]; then | 30 | if [ "$c" = '3' ]; then |
| 31 | title="$lineVAR" | 31 | title="$lineVAR" |
| 32 | fi | 32 | fi |
| 33 | if [[ "$c" == '4' ]]; then | 33 | if [ "$c" = '4' ]; then |
| 34 | if [ ! -z "$lineVAR" ]; then | 34 | if [ ! -z "$lineVAR" ]; then |
| 35 | t=$(($t+1)) | 35 | t=$(($t+1)) |
| 36 | fi | 36 | fi |
| 37 | if [[ "$t" == '2' ]]; then | 37 | if [ "$t" = '2' ]; then |
| 38 | break | 38 | break |
| 39 | fi | 39 | fi |
| 40 | echo "<li><a href='https://github.com/nektro/$PROJECT_REPONAME/commit/$hash'><code>$hash_abrev</code></a> $title ($author)</li>" | 40 | echo "<li><a href='https://github.com/nektro/$PROJECT_REPONAME/commit/$hash'><code>$hash_abrev</code></a> $title ($author)</li>" |
| 41 | fi | 41 | fi |
| 42 | c=$(($c+1)) | 42 | c=$(($c+1)) |
| 43 | # | 43 | # |
| 44 | if [[ "$c" == '6' ]]; then | 44 | if [ "$c" = '6' ]; then |
| 45 | c=0 | 45 | c=0 |
| 46 | fi | 46 | fi |
| 47 | done | 47 | done |