Skip to content

Commit

Permalink
Corrige bug na configuração do cabecalho
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirack committed Apr 18, 2022
1 parent 4eef9e2 commit 332c193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cabecalho
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ case "$1" in

if [ -z "$VARIAVEL_EXISTENTE" ]
then
echo "$VARIAVEL_FORNECIDA=$VALOR_FORNECIDO" >> "$CONFIG"
echo "$VARIAVEL_FORNECIDA=\"$VALOR_FORNECIDO\"" >> "$CONFIG"
else
sed -i "/^#/!s/$VARIAVEL_FORNECIDA=.*/$VARIAVEL_FORNECIDA=$VALOR_FORNECIDO/" "$CONFIG"
sed -i "/^#/!s/$VARIAVEL_FORNECIDA=.*/$VARIAVEL_FORNECIDA=\"$VALOR_FORNECIDO\"/" "$CONFIG"
fi
exit 0
;;
Expand Down

0 comments on commit 332c193

Please sign in to comment.