1
0
Fork 0

remove validate.sh

This commit is contained in:
Luca Bilke 2024-05-25 00:04:52 +02:00
parent 021ffdf380
commit 02f3e1b7d5
No known key found for this signature in database
GPG Key ID: C9E851809C1A5BDE
1 changed files with 0 additions and 20 deletions

View File

@ -1,20 +0,0 @@
#!/bin/sh
info() {
printf "%b\n" "${1}"
}
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
skip_regex="^(#.*)?$"
total=$(grep -cvP "$skip_regex" "${SCRIPT_DIR}/packages.txt")
tput sc
while read -r package; do
echo "$package" | grep -qvP "$skip_regex" || continue
n=$((n + 1))
eval "info \"(${n}/${total}) Validating $package\""
xbps-query -R "$package" >/dev/null 2>&1 || failed_packages="${failed_packages} ${package}"
tput rc
tput el
done <"${SCRIPT_DIR}/packages.txt"
echo "Failed packages:${failed_packages}"