mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 13:56:47 +00:00
move IsInstalled and apt-fast
This commit is contained in:
@@ -33,4 +33,13 @@ download_with_retries() {
|
||||
|
||||
echo "Could not download $URL"
|
||||
return 1
|
||||
}
|
||||
|
||||
## Use dpkg to figure out if a package has already been installed
|
||||
## Example use:
|
||||
## if ! IsInstalled packageName; then
|
||||
## echo "packageName is not installed!"
|
||||
## fi
|
||||
function IsInstalled {
|
||||
dpkg -S $1 &> /dev/null
|
||||
}
|
||||
Reference in New Issue
Block a user