forked from ungleich-public/cdist
sync and remove require different options
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
37eabffd9c
commit
b09d9786d2
1 changed files with 2 additions and 4 deletions
|
@ -25,8 +25,6 @@
|
|||
# exec >&2
|
||||
# set -x
|
||||
|
||||
pacopts="--needed --noconfirm --noprogressbar"
|
||||
|
||||
if [ -f "$__object/parameter/name" ]; then
|
||||
name="$__object/parameter/name"
|
||||
else
|
||||
|
@ -57,10 +55,10 @@ fi
|
|||
|
||||
case "$state_should" in
|
||||
present)
|
||||
echo pacman "$pacopts" -S \"$name\"
|
||||
echo pacman --needed --noconfirm --noprogressbar -S \"$name\"
|
||||
;;
|
||||
absent)
|
||||
echo pacman "$pacopts" -R \"$name\"
|
||||
echo pacman --noconfirm --noprogressbar -R \"$name\"
|
||||
;;
|
||||
*)
|
||||
echo "Unknown state: $state_should" >&2
|
||||
|
|
Loading…
Reference in a new issue