check_patches.sh 404 B

123456789101112131415
  1. #!/bin/bash
  2. for patch in patches/*.patch; do
  3. OUTPUT=$(patch -d LibreELEC.tv/ --dry-run -p1 < "$patch")
  4. if [[ $? -ne 0 ]]; then
  5. echo "[!!] $patch"
  6. echo " --------------------------------------------------------------"
  7. while IFS= read -r line; do
  8. echo " $line"
  9. done <<< $(patch -d LibreELEC.tv/ --dry-run -p1 --verbose < "$patch")
  10. else
  11. echo "[OK] $patch"
  12. fi
  13. done