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: commitdad5bfbd18
Author: HW42 <hw42@ipsumj.de> Date: Thu Feb 5 03:14:41 2015 +0100 remove 'bashisms' or explicit use bash (cherry picked from commitb560596f1b
)
This commit is contained in:
parent
a04bcf602b
commit
0e7936006a
|
@ -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