backup: fix qubes.Restore service - do not send garbage as backup data
Do not send 'which' command output to stdout, as it will mess real
backup data.
This fixes regression introduced by this commit:
commit dad5bfbd18
Author: HW42 <hw42@ipsumj.de>
Date: Thu Feb 5 03:14:41 2015 +0100
remove 'bashisms' or explicit use bash
This commit is contained in:
parent
3c67f98a9b
commit
b560596f1b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user