Fixed wrappers to handle quoted arguments properly.

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 1 year ago
parent 5210700247
commit 7762540f85
  1. 4
      tools/anvil-pcs-wrapper
  2. 4
      tools/anvil-virsh-wrapper

@ -2,9 +2,9 @@
( (
if [ "$1" == "status" ]; then if [ "$1" == "status" ]; then
pcs $@ pcs "$@"
exit $? exit $?
fi fi
flock -e 200 flock -e 200
pcs $@ pcs "$@"
) 200>/tmp/pcs.lock ) 200>/tmp/pcs.lock

@ -2,9 +2,9 @@
( (
if [ "$1" != "list" ]; then if [ "$1" != "list" ]; then
virsh $@ virsh "$@"
exit $? exit $?
fi fi
flock -e 200 flock -e 200
virsh $@ virsh "$@"
) 200>/tmp/virsh.lock ) 200>/tmp/virsh.lock

Loading…
Cancel
Save