instance match only at the beginning of the line
This commit is contained in:
parent
81de8248c3
commit
db076d5a34
@ -41,7 +41,7 @@ else
|
|||||||
chmod 600 ${VMS}/${1}.txt
|
chmod 600 ${VMS}/${1}.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
INSTANCE=$(awk -F'=' '/instance/ {print $2}' ${VMS}/${1}.txt | tr -d '"')
|
INSTANCE=$(awk -F'=' '/^instance/ {print $2}' ${VMS}/${1}.txt | tr -d '"')
|
||||||
if [[ -z ${INSTANCE} ]]; then
|
if [[ -z ${INSTANCE} ]]; then
|
||||||
INSTANCE=${1}
|
INSTANCE=${1}
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user