Merge "scripts: Fix shell expansion when collecting VM logs"

This commit is contained in:
Zuul 2018-10-05 15:39:56 +00:00 committed by Gerrit Code Review
commit 88d67f9529
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ echo "Making logs directory and collecting logs."
[ -d ${LOG_LOCATION} ] || mkdir -p ${LOG_LOCATION}
if [ -z "${TEST_VM_NODE_NAMES+x}" ]; then
sudo cp /var/log/libvirt/baremetal_logs/testvm[[:digit:]]_console.log ${LOG_LOCATION}
sudo sh -c "cp /var/log/libvirt/baremetal_logs/testvm[[:digit:]]_console.log" ${LOG_LOCATION}
sudo chown $USER ${LOG_LOCATION}/testvm[[:digit:]]_console.log
sudo chmod o+r ${LOG_LOCATION}/testvm[[:digit:]]_console.log
else