Return the result of the kickstart.package.install or just skip when already installed
This commit is contained in:
parent
d4ad417027
commit
1b7edd0b1c
@ -13,11 +13,9 @@ kickstart.package.installed() {
|
|||||||
kickstart.package.install() {
|
kickstart.package.install() {
|
||||||
if kickstart.package.installed "$@"; then
|
if kickstart.package.installed "$@"; then
|
||||||
kickstart.info "$@ already installed"
|
kickstart.info "$@ already installed"
|
||||||
return 1
|
|
||||||
else
|
else
|
||||||
kickstart.info "No packages found matching $@. Installing..."
|
kickstart.info "No packages found matching $@. Installing..."
|
||||||
kickstart.mute "`kickstart.package.manager` install -y $@"
|
kickstart.mute "`kickstart.package.manager` install -y $@"
|
||||||
return 0
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user