Update package version to 5.3.3
This commit is contained in:
@@ -5,4 +5,10 @@ URL="https://tiswww.case.edu/php/chet/bash/bashtop.html"
|
||||
# Get version number from tag name
|
||||
VERSION=$(curl -s -L "$URL" | grep -A1 'The current version of bash is ' | grep -o -E '([0-9]\.[0-9]*)')
|
||||
|
||||
# Get patch number
|
||||
PATCH=$(curl -s --list-only ftp://ftp.gnu.org/gnu/bash/bash-${VERSION}-patches/ | grep -v '.sig' | wc -l)
|
||||
|
||||
# Append patch number to version
|
||||
VERSION="${VERSION}.${PATCH}"
|
||||
|
||||
echo "$VERSION"
|
||||
|
||||
Reference in New Issue
Block a user