Last active
January 10, 2017 00:49
-
-
Save faultylee/d929e5c2d22c101cdcb779c0adbaa8fd to your computer and use it in GitHub Desktop.
Check for moved/renamed AUR
This file contains hidden or 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 | |
pacman -Qqm | while read line ; | |
do | |
aur_result=$(curl -o /dev/null --silent --head --write-out '%{http_code}\n' "https://aur.archlinux.org/packages/${line}/") | |
if [[ "$aur_result" = "404" ]]; then | |
echo ${line} ; | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment