[X2Go-Commits] [buildscripts] 01/12: bin/debian-codename-to-version.sh: use single quotes where appropriate.
git-admin at x2go.org
git-admin at x2go.org
Mon Mar 11 14:46:36 CET 2024
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository buildscripts.
commit 98ea823dcb3ea2cd3bf7fdd89ee93334bd662641
Author: Mihai Moldovan <ionic at ionic.de>
Date: Thu Mar 7 12:16:22 2024 +0100
bin/debian-codename-to-version.sh: use single quotes where appropriate.
No functional changes.
---
bin/debian-codename-to-version.sh | 40 +++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/bin/debian-codename-to-version.sh b/bin/debian-codename-to-version.sh
index 3c502fd..d13169a 100755
--- a/bin/debian-codename-to-version.sh
+++ b/bin/debian-codename-to-version.sh
@@ -38,13 +38,13 @@ if [ -z "${BASH_VERSINFO[0]}" ] || [ "${BASH_VERSINFO[0]}" -lt 4 ]; then
codename="$(tr '[:upper:]' '[:lower:]' <<< "${codename}")"
fi
-typeset -i ret="0"
+typeset -i ret='0'
case "${codename}" in
# The first version number is actually "fake",
# but given it's a rolling release,
# we can't really do better here.
- ("sid"|"unstable") echo "9999";;
+ ('sid'|'unstable') echo '9999';;
# FIXME: add "testing" - but how? It's not really
# a stable release on its own, but a rolling
@@ -66,26 +66,26 @@ case "${codename}" in
# For now and due to the aforementioned problems,
# I decided to not handle the "testing" code name
# at all.
- ("bookworm") echo "12";;
+ ('bookworm') echo '12';;
- ("bullseye") echo "11";;
- ("buster") echo "10";;
- ("stretch") echo "9";;
- ("jessie") echo "8";;
- ("wheezy") echo "7";;
- ("squeeze") echo "6";;
- ("lenny") echo "5";;
- ("etch") echo "4";;
- ("sarge") echo "3.1";;
- ("woody") echo "3.0";;
- ("potato") echo "2.2";;
- ("slink") echo "2.1";;
- ("hamm") echo "2.0";;
- ("bo") echo "1.3";;
- ("rex") echo "1.2";;
- ("buzz") echo "1.1";;
+ ('bullseye') echo '11';;
+ ('buster') echo '10';;
+ ('stretch') echo '9';;
+ ('jessie') echo '8';;
+ ('wheezy') echo '7';;
+ ('squeeze') echo '6';;
+ ('lenny') echo '5';;
+ ('etch') echo '4';;
+ ('sarge') echo '3.1';;
+ ('woody') echo '3.0';;
+ ('potato') echo '2.2';;
+ ('slink') echo '2.1';;
+ ('hamm') echo '2.0';;
+ ('bo') echo '1.3';;
+ ('rex') echo '1.2';;
+ ('buzz') echo '1.1';;
- (*) ret="1";;
+ (*) ret='1';;
esac
exit "${ret}"
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/buildscripts.git
More information about the x2go-commits
mailing list