Remove unquote for mute

This commit is contained in:
Bruno Tavares 2014-02-25 14:52:51 -03:00
parent bd14b8d5a8
commit f3aae7bd7b
4 changed files with 8 additions and 8 deletions

View File

@ -23,7 +23,7 @@ kickstart.context() {
kickstart.mute() {
kickstart.info "Running \"$@\""
`$@ >/dev/null 2>&1`
`"$@" >/dev/null 2>&1`
return $?
}

View File

@ -1,12 +1,12 @@
kickstart.apt.ppa() {
kickstart.mute "add-apt-repository -y $1"
kickstart.mute add-apt-repository -y $1
kickstart.package.update
}
kickstart.apt.add_key_from_url() {
kickstart.download.stream $1 | kickstart.mute 'apt-key add -'
kickstart.download.stream $1 | kickstart.mute apt-key add -
}
kickstart.apt.add_key_from_keychain() {
kickstart.mute "apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv $1"
kickstart.mute apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv $1
}

View File

@ -15,14 +15,14 @@ kickstart.package.install() {
kickstart.info "$@ already installed"
else
kickstart.info "No packages found matching $@. Installing..."
kickstart.mute "`kickstart.package.manager` install -y $@"
kickstart.mute `kickstart.package.manager` install -y "$@"
fi
}
kickstart.package.update() {
kickstart.mute "`kickstart.package.manager` update -y"
kickstart.mute `kickstart.package.manager` update -y
}
kickstart.package.upgrade() {
kickstart.mute "`kickstart.package.manager` upgrade -y"
kickstart.mute `kickstart.package.manager` upgrade -y
}

View File

@ -1,5 +1,5 @@
kickstart.user.create() {
kickstart.mute "id $1" || ( useradd -m -s /bin/bash -U -p `openssl passwd -1 $2` $1 )
kickstart.mute id $1 || ( useradd -m -s /bin/bash -U -p `openssl passwd -1 $2` $1 )
}
kickstart.user.is_on_group() {