Created
July 6, 2022 01:08
-
-
Save oreo639/5e6e36b6b046e0aeb7ede7023b15180e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IFS=$'\n' CHECK_PKGS=($(git diff --name-only HEAD~85 | awk '/^srcpkgs/ {print $1;}' | awk -F\/ '{print $2}' | awk '!seen[$0]++')) | |
for element in "${CHECK_PKGS[@]}"; do | |
if [ -d "srcpkgs/${element}" ] && [ ! -L "srcpkgs/${element}" ]; then | |
echo "=> Checking ${element}" | |
./xbps-src update-check ${element} | |
else | |
echo "=> Skiped ${element}" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment