Commit 456b77f1 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix a dangerous-use-of-xargs bug in create

parent 01cdf118
......@@ -119,7 +119,7 @@ if [ $? -ne 0 ]; then
fi
# Read the first line. This will remove \r and \n chars
result=$(sed 's|\r||g' "$result_file" | xargs echo)
result=$(sed 's|\r||g' "$result_file" | head -1)
if [ "x$result" != "xSUCCESS" ]; then
log_error "Helper VM returned error"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment