From 5de3758570c7292f5e6ebc5a6eac2b384404a029 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Thu, 10 Aug 2023 01:29:03 -0700 Subject: [PATCH] changelog.sh: remove bashisms --- changelog.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/changelog.sh b/changelog.sh index 859f8055c9e3d54aadf682c841fb121377f5040e..5d1309f339cea781e3e5e13e14567adc6c013a3c 100755 --- a/changelog.sh +++ b/changelog.sh @@ -18,30 +18,30 @@ c=0 t=0 readlog | while IFS= read -r lineVAR; do - if [[ "$c" == '0' ]]; then + if [ "$c" = '0' ]; then hash_abrev="$lineVAR" fi - if [[ "$c" == '1' ]]; then + if [ "$c" = '1' ]; then hash="$lineVAR" fi - if [[ "$c" == '2' ]]; then + if [ "$c" = '2' ]; then author="$lineVAR" fi - if [[ "$c" == '3' ]]; then + if [ "$c" = '3' ]; then title="$lineVAR" fi - if [[ "$c" == '4' ]]; then + if [ "$c" = '4' ]; then if [ ! -z "$lineVAR" ]; then t=$(($t+1)) fi - if [[ "$t" == '2' ]]; then + if [ "$t" = '2' ]; then break fi echo "
  • $hash_abrev $title ($author)
  • " fi c=$(($c+1)) # - if [[ "$c" == '6' ]]; then + if [ "$c" = '6' ]; then c=0 fi done -- 2.54.0