backup: fix handling backup filename with spaces
Fixes QubesOS/qubes-issues#1371
This commit is contained in:
parent
c2596a0435
commit
c704c35cd8
@ -7,7 +7,7 @@ if [ -f "$args" ] ; then
|
|||||||
echo "Performing restore from backup file $args" >&2
|
echo "Performing restore from backup file $args" >&2
|
||||||
TARGET="$args"
|
TARGET="$args"
|
||||||
echo "Copying $TARGET to STDOUT" >&2
|
echo "Copying $TARGET to STDOUT" >&2
|
||||||
/usr/lib/qubes/tar2qfile $TARGET $paths
|
/usr/lib/qubes/tar2qfile "$TARGET" $paths
|
||||||
else
|
else
|
||||||
echo "Checking if arguments is matching a command" >&2
|
echo "Checking if arguments is matching a command" >&2
|
||||||
COMMAND=`echo $args | cut -d ' ' -f 1`
|
COMMAND=`echo $args | cut -d ' ' -f 1`
|
||||||
|
Loading…
Reference in New Issue
Block a user