diff --git a/qubes-rpc/qubes.Restore b/qubes-rpc/qubes.Restore index 481f4b4..c02e5ad 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" 2>/dev/null; then + if which "$COMMAND" >/dev/null; then tmpdir=`mktemp -d` mkfifo $tmpdir/backup-data echo "Redirecting $args to STDOUT" >&2