authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-08-10 01:29:03 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-08-10 01:29:03 -07:00
log5de3758570c7292f5e6ebc5a6eac2b384404a029
treebd2e32edb72d18785df4010a7611f88a9ab61815
parent509b9b73990381e089fcd657bf83dc9d1b111371

changelog.sh: remove bashisms


1 files changed, 7 insertions(+), 7 deletions(-)

changelog.sh+7-7
...@@ -18,30 +18,30 @@ c=0...@@ -18,30 +18,30 @@ c=0
18t=018t=0
19readlog |19readlog |
20while IFS= read -r lineVAR; do20while IFS= read -r lineVAR; do
21 if [[ "$c" == '0' ]]; then21 if [ "$c" = '0' ]; then
22 hash_abrev="$lineVAR"22 hash_abrev="$lineVAR"
23 fi23 fi
24 if [[ "$c" == '1' ]]; then24 if [ "$c" = '1' ]; then
25 hash="$lineVAR"25 hash="$lineVAR"
26 fi26 fi
27 if [[ "$c" == '2' ]]; then27 if [ "$c" = '2' ]; then
28 author="$lineVAR"28 author="$lineVAR"
29 fi29 fi
30 if [[ "$c" == '3' ]]; then30 if [ "$c" = '3' ]; then
31 title="$lineVAR"31 title="$lineVAR"
32 fi32 fi
33 if [[ "$c" == '4' ]]; then33 if [ "$c" = '4' ]; then
34 if [ ! -z "$lineVAR" ]; then34 if [ ! -z "$lineVAR" ]; then
35 t=$(($t+1))35 t=$(($t+1))
36 fi36 fi
37 if [[ "$t" == '2' ]]; then37 if [ "$t" = '2' ]; then
38 break38 break
39 fi39 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 fi41 fi
42 c=$(($c+1))42 c=$(($c+1))
43 #43 #
44 if [[ "$c" == '6' ]]; then44 if [ "$c" = '6' ]; then
45 c=045 c=0
46 fi46 fi
47done47done