mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
B #: fix minor bug at fs/cp & BRIDGE_LIST (#1117)
This commit is contained in:
1 parent
d6fb182127
commit
02416dcb00
1 file changed
+7
-1
@@ -153,7 +153,13 @@ if [ -n "$BRIDGE_LIST" ]; then
|
||||
"Error converting $DST in $DST_HOST"
|
||||
fi
|
||||
|
||||
FORMAT=$(ssh_monitor_and_log $DST_HOST "$QEMU_IMG info $DST | grep "^file format:" | awk '{print \$3}' || :" 2>&1)
|
||||
FORMAT=$(ssh_monitor_and_log $DST_HOST "set -e -o pipefail; $QEMU_IMG info $DST | grep \"^file format:\" | awk '{print \$3}'")
|
||||
|
||||
# if ssh_monitor_and_log fails RC is returned
|
||||
if [[ $FORMAT =~ '^[0-9]+$' ]]; then
|
||||
exit -1
|
||||
fi
|
||||
|
||||
else
|
||||
mkdir -p "$BASE_PATH"
|
||||
multiline_exec_and_log "set -e -o pipefail; $COPY_COMMAND" "Error copying $SRC to $DST"
|
||||
|
||||
Reference in new issue
Block a user