release.sh: Address shellcheck remarks
No real issues, but let's silence them to catch future ones. One change is a nice simplification in fact. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
		@@ -22,7 +22,7 @@ cat CHANGELOG.md >> newchangelog
 | 
				
			|||||||
$EDITOR newchangelog
 | 
					$EDITOR newchangelog
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo -n "All fine, ready to release? [y/N]"
 | 
					echo -n "All fine, ready to release? [y/N]"
 | 
				
			||||||
read a
 | 
					read -r a
 | 
				
			||||||
a=$(echo "$a" | tr '[:upper:]' '[:lower:]')
 | 
					a=$(echo "$a" | tr '[:upper:]' '[:lower:]')
 | 
				
			||||||
if [ "$a" != "y" ]; then
 | 
					if [ "$a" != "y" ]; then
 | 
				
			||||||
    echo "no not happy, let's stop doing the release"
 | 
					    echo "no not happy, let's stop doing the release"
 | 
				
			||||||
@@ -44,7 +44,7 @@ git push --follow-tags
 | 
				
			|||||||
python setup.py sdist upload -r pypi
 | 
					python setup.py sdist upload -r pypi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
authors=$(git shortlog -s "$OLD_VERSION".."$NEW_VERSION" | cut -c8- | paste -s -d, - | sed -e 's/,/, /g')
 | 
					authors=$(git shortlog -s "$OLD_VERSION".."$NEW_VERSION" | cut -c8- | paste -s -d, - | sed -e 's/,/, /g')
 | 
				
			||||||
highlights=$(cat CHANGELOG.md | sed -e "/$OLD_VERSION/,\$d")
 | 
					highlights=$(sed -e "/$OLD_VERSION/,\$d" CHANGELOG.md)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
prolog=$PWD/release-email.txt
 | 
					prolog=$PWD/release-email.txt
 | 
				
			||||||
echo \
 | 
					echo \
 | 
				
			||||||
@@ -62,8 +62,8 @@ https://github.com/siemens/kas/releases/tag/$NEW_VERSION
 | 
				
			|||||||
https://github.com/orgs/siemens/packages/container/package/kas%2Fkas
 | 
					https://github.com/orgs/siemens/packages/container/package/kas%2Fkas
 | 
				
			||||||
https://github.com/orgs/siemens/packages/container/package/kas%2Fkas-isar
 | 
					https://github.com/orgs/siemens/packages/container/package/kas%2Fkas-isar
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"> $prolog
 | 
					"> "$prolog"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
git shortlog $OLD_VERSION..$NEW_VERSION >> $prolog
 | 
					git shortlog "$OLD_VERSION..$NEW_VERSION" >> "$prolog"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
thunderbird -compose "subject=[ANNOUNCE] Release $NEW_VERSION,to=kas-devel@googlegroups.com,message=$prolog"
 | 
					thunderbird -compose "subject=[ANNOUNCE] Release $NEW_VERSION,to=kas-devel@googlegroups.com,message=$prolog"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user