Merge remote-tracking branch 'qubesos/pr/33'
* qubesos/pr/33: And some more quoting to satisfy #1672 Quoting all `cat`s as proposed in #1672 Modifying support cpio as proposed in #1672 Quoting the destination as proposed in #1672
This commit is contained in:
commit
13a463b565
@ -209,7 +209,7 @@ versions:
|
|||||||
FIXLINK
|
FIXLINK
|
||||||
|
|
||||||
---
|
---
|
||||||
" >> $HOME/$FILENAME.yml
|
" >> "$HOME/$FILENAME.yml"
|
||||||
|
|
||||||
|
|
||||||
if [[ "$SUPPORT_FILES" == 1 ]]
|
if [[ "$SUPPORT_FILES" == 1 ]]
|
||||||
@ -217,7 +217,7 @@ if [[ "$SUPPORT_FILES" == 1 ]]
|
|||||||
|
|
||||||
# cpio
|
# cpio
|
||||||
cd $TEMP_DIR
|
cd $TEMP_DIR
|
||||||
find -print0 |cpio --quiet -o -H crc --null |gzip >$HOME/$FILENAME.cpio.gz
|
find -print0 | cpio --quiet -o -H crc --null | gzip > "$HOME/$FILENAME.cpio.gz"
|
||||||
cd
|
cd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -229,12 +229,12 @@ if [[ "$COPY2VM" != "dom0" ]]
|
|||||||
|
|
||||||
if [[ -f "$HOME/$FILENAME.cpio.gz" ]]
|
if [[ -f "$HOME/$FILENAME.cpio.gz" ]]
|
||||||
then
|
then
|
||||||
cat $HOME/$FILENAME.cpio.gz | qvm-run -a -q --pass-io $COPY2VM "cat >/home/user/$FILENAME.cpio.gz"
|
cat "$HOME/$FILENAME.cpio.gz" | qvm-run -a -q --pass-io $COPY2VM "cat > \"/home/user/$FILENAME.cpio.gz\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "$HOME/$FILENAME.yml" ]]
|
if [[ -f "$HOME/$FILENAME.yml" ]]
|
||||||
then
|
then
|
||||||
cat $HOME/$FILENAME.yml | qvm-run -a -q --pass-io $COPY2VM "cat >/home/user/$FILENAME.yml"
|
cat "$HOME/$FILENAME.yml" | qvm-run -a -q --pass-io $COPY2VM "cat > \"/home/user/$FILENAME.yml\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user