update_librex.sh 320 B

123456
  1. #!/bin/bash
  2. cd /root/librex
  3. git fetch origin main -n --quiet
  4. [ -n "$(git diff --quiet @ @{u})" ] || { echo "Up-to-date" && exit; }
  5. git pull --quiet
  6. lftp -c "set sftp:auto-confirm yes; open sftp://[REDACTED]; mirror -Rev ./ [REMOTE]/ --only-newer --parallel=10 -X .htaccess -X config.php -X opensearch.xml -X robots.txt"