Fix "backup: fix qubes.Restore service - do not send garbage as backup data"

This commit is contained in:
Marek Marczykowski-Górecki 2015-02-22 14:36:11 +01:00
parent 29f5709c53
commit fda293f09a

View File

@ -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