move IsInstalled and apt-fast

This commit is contained in:
Mikhail Timofeev
2020-07-08 22:28:23 +03:00
parent cebf52206b
commit a7ee8ab672
7 changed files with 25 additions and 25 deletions

View File

@@ -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
}