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

View File

@ -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