instance match only at the beginning of the line

This commit is contained in:
mischa 2024-05-20 12:08:26 +00:00
parent 81de8248c3
commit db076d5a34
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ else
chmod 600 ${VMS}/${1}.txt
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
INSTANCE=${1}
fi