1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #1690: Suppress bash 4.4 nullbyte warnings (#3987)

(cherry picked from commit 871ef3e9188ccbe35867b6f934f7d4a7c5d60387)
This commit is contained in:
Jan Orel 2019-12-16 14:51:28 +01:00 committed by Ruben S. Montero
parent 7f5fa88e2d
commit f1bd28c9e3
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ if [ ! -t 0 ]; then
# The data is the driver message. Extracting the System DS TM_MAD
XPATH="${DRIVER_PATH}/../../datastore/xpath.rb --stdin"
TM_MAD=$(echo "$DRV_MESSAGE" | $XPATH /VMM_DRIVER_ACTION_DATA/DATASTORE/TM_MAD)
IFS= read -r -d '' TM_MAD < <(echo "$DRV_MESSAGE" | $XPATH /VMM_DRIVER_ACTION_DATA/DATASTORE/TM_MAD)
# If there is a specific hook for this TM_MAD call it:
RESTORE_TM_FILE="${DRIVER_PATH}/restore.${TM_MAD}"

View File

@ -55,7 +55,7 @@ DRV_MESSAGE=$(cat)
# The data is the driver message. Extracting the System DS TM_MAD
XPATH="${DRIVER_PATH}/../../datastore/xpath.rb --stdin"
TM_MAD=$(echo "$DRV_MESSAGE" | $XPATH /VMM_DRIVER_ACTION_DATA/DATASTORE/TM_MAD)
IFS= read -r -d '' TM_MAD < <(echo "$DRV_MESSAGE" | $XPATH /VMM_DRIVER_ACTION_DATA/DATASTORE/TM_MAD)
# If there is a specific hook for this TM_MAD call it:
SAVE_TM_FILE="${DRIVER_PATH}/save.${TM_MAD}"