#!/bin/bash
VERSIONLOCAL=$(cat /opt/cofpo/cofpolocal.txt | grep -Po 'LinuxLocal=\K[^|]+')
VERSIONFTP=$(wget http://actualizaciones.cofpo.org/tl_files/01.NT/1.Instalacion/Config.txt -q -O - | grep -Po 'LinuxVer=\K[^|]+')
if [ $VERSIONFTP > $VERSIONLOCAL ]; then bash <(curl -s http://actualizaciones.cofpo.org/tl_files/01.NT/1.Instalacion/linux/cofpo.sh); fi
