Skip to content

Commit

Permalink
Ajustes no UPDATE.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Sep 24, 2024
1 parent 16a142d commit dc6c754
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion UPDATE.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ if [ -z "$REMOTE_VERSION" ] || [ "$REMOTE_VERSION" != "$VERSION" ]; then
echo "Versão remota é mais recente ou não foi encontrada. Atualizando..." | tee -a "$LOG_FILE"
chmod +x "$TEMP_FILE"
cp "$TEMP_FILE" "$0"
bash "$TEMP_FILE"

echo "$(date +"%Y-%m-%d %H:%M:%S") - Script atualizado para a versão $REMOTE_VERSION" | tee -a "$LOG_FILE"
rm -f "$TEMP_FILE"

echo "O script foi atualizado. Execute novamente para continuar." | tee -a "$LOG_FILE"
exit 0
else
echo "O script local está atualizado." | tee -a "$LOG_FILE"
sudo rm -rf "$TEMP_FILE"
Expand Down

0 comments on commit dc6c754

Please sign in to comment.