backup: fix handling backup filename with spaces

Fixes QubesOS/qubes-issues#1371
This commit is contained in:
Marek Marczykowski-Górecki 2015-11-02 02:53:12 +01:00
parent c2596a0435
commit c704c35cd8
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -7,7 +7,7 @@ if [ -f "$args" ] ; then
echo "Performing restore from backup file $args" >&2
TARGET="$args"
echo "Copying $TARGET to STDOUT" >&2
/usr/lib/qubes/tar2qfile $TARGET $paths
/usr/lib/qubes/tar2qfile "$TARGET" $paths
else
echo "Checking if arguments is matching a command" >&2
COMMAND=`echo $args | cut -d ' ' -f 1`