diff --git a/qubes-rpc/qubes.Restore b/qubes-rpc/qubes.Restore index ad73c39..481f4b4 100644 --- a/qubes-rpc/qubes.Restore +++ b/qubes-rpc/qubes.Restore @@ -11,7 +11,7 @@ if [ -f "$args" ] ; then else echo "Checking if arguments is matching a command" >&2 COMMAND=`echo $args | cut -d ' ' -f 1` - if which "$COMMAND"; then + if which "$COMMAND" 2>/dev/null; then tmpdir=`mktemp -d` mkfifo $tmpdir/backup-data echo "Redirecting $args to STDOUT" >&2