mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
add function and clean up logic for array
This commit is contained in:
@@ -42,4 +42,9 @@ download_with_retries() {
|
||||
## fi
|
||||
function IsPackageInstalled {
|
||||
dpkg -S $1 &> /dev/null
|
||||
}
|
||||
|
||||
verlte() {
|
||||
sortedVersion=$(echo -e "$1\n$2" | sort -V | head -n1)
|
||||
[ "$1" = "$sortedVersion" ]
|
||||
}
|
||||
Reference in New Issue
Block a user