mirror of
https://github.com/Qubes-Community/Contents.git
synced 2024-12-22 21:59:26 -05:00
Merge pull request #135 from jamke/patch-2
Fix multiple issues in qvm-copy-to-vm2.sh
This commit is contained in:
commit
b8650fd173
@ -4,12 +4,12 @@
|
|||||||
# qvm-copy-to-dom0 <Source in dom0> <AppVM> <Destination in dom0>
|
# qvm-copy-to-dom0 <Source in dom0> <AppVM> <Destination in dom0>
|
||||||
|
|
||||||
# command line parameters
|
# command line parameters
|
||||||
Source=$1 # must be present
|
Source="$1" # must be present
|
||||||
AppVM=$2 # must be present
|
AppVM="$2" # must be present
|
||||||
Destination=$3 # must be present
|
Destination="$3" # must be present
|
||||||
|
|
||||||
# if no Destination given on commandline use /home/user/QubesIncoming
|
# if no Destination given on commandline use /home/user/QubesIncoming
|
||||||
if [ -z "$3" ];then Destination=/home/user/QubesIncoming; fi
|
if [ -z "$Destination" ];then Destination="/home/user/QubesIncoming"; fi
|
||||||
|
|
||||||
# copy file from dom0 to AppVM
|
# copy file from dom0 to AppVM
|
||||||
qvm-run --pass-io $AppVM "cat $Source" > $Destination
|
qvm-run --pass-io $AppVM "cat -- \"$Source\"" > "$Destination"
|
||||||
|
Loading…
Reference in New Issue
Block a user