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
1818t=0
1919readlog |
2020while IFS= read -r lineVAR; do
21 if [[ "$c" == '0' ]]; then
21 if [ "$c" = '0' ]; then
2222 hash_abrev="$lineVAR"
2323 fi
24 if [[ "$c" == '1' ]]; then
24 if [ "$c" = '1' ]; then
2525 hash="$lineVAR"
2626 fi
27 if [[ "$c" == '2' ]]; then
27 if [ "$c" = '2' ]; then
2828 author="$lineVAR"
2929 fi
30 if [[ "$c" == '3' ]]; then
30 if [ "$c" = '3' ]; then
3131 title="$lineVAR"
3232 fi
33 if [[ "$c" == '4' ]]; then
33 if [ "$c" = '4' ]; then
3434 if [ ! -z "$lineVAR" ]; then
3535 t=$(($t+1))
3636 fi
37 if [[ "$t" == '2' ]]; then
37 if [ "$t" = '2' ]; then
3838 break
3939 fi
4040 echo "<li><a href='https://github.com/nektro/$PROJECT_REPONAME/commit/$hash'><code>$hash_abrev</code></a> $title ($author)</li>"
4141 fi
4242 c=$(($c+1))
4343 #
44 if [[ "$c" == '6' ]]; then
44 if [ "$c" = '6' ]; then
4545 c=0
4646 fi
4747done