Skip to content

Commit

Permalink
try parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreMikulec committed Aug 3, 2024
1 parent afb8f5a commit 051812b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,23 @@ jobs:
sudo /etc/init.d/postgresql stop
sudo apt-get remove --purge postgresql\*
sudo rm -rf /etc/postgresql /var/lib/postgresql
git ls-remote --tags https://github.com/postgres/postgres.git | cut -c 52- | grep -e 'REL_17_[0-9]' ; RET=$?
(git ls-remote --tags https://github.com/postgres/postgres.git | cut -c 52- | grep -e 'REL_17_[0-9]') ; RET=$?
case "$RET" in
"0")
echo -n "Release(s) are found. Taking the last Release . . . "
export GITTAG=$(git ls-remote --tags https://github.com/postgres/postgres.git | cut -c 52- | grep -e 'REL_17_[0-9]' | tail -n 1)
;;
"1")
echo "Release(s) are not found. Trying Release Candidates."
git ls-remote --tags https://github.com/postgres/postgres.git | cut -c 52- | grep -e 'REL_17_RC[0-9]' ; RET=$?
(git ls-remote --tags https://github.com/postgres/postgres.git | cut -c 52- | grep -e 'REL_17_RC[0-9]') ; RET=$?
case "$RET" in
"0")
echo -n "Release Candidate(s) are found. Taking the last Release Candidate . . . "
export GITTAG=$(git ls-remote --tags https://github.com/postgres/postgres.git | cut -c 52- | grep -e 'REL_17_RC[0-9]' | tail -n 1)
;;
"1")
echo "Release Candidate(s) are not found. Trying Betas."
git ls-remote --tags https://github.com/postgres/postgres.git | cut -c 52- | grep -e 'REL_17_BETA[0-9]' ; RET=$?
(git ls-remote --tags https://github.com/postgres/postgres.git | cut -c 52- | grep -e 'REL_17_BETA[0-9]') ; RET=$?
case "$RET" in
"0")
echo -n "Beta(s) are found. Taking the last Beta . . . "
Expand Down

0 comments on commit 051812b

Please sign in to comment.