pmah.zsh to replace cower -udd :<
This commit is contained in:
parent
b29d66cc7e
commit
e8abdc2640
1 changed files with 12 additions and 0 deletions
12
pmah.zsh
Executable file
12
pmah.zsh
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/env zsh
|
||||||
|
# poor man's aur helper
|
||||||
|
for i in jq curl; do
|
||||||
|
whence $i &>/dev/null || { printf "missing %s!\n" $i >&2; exit 1 }
|
||||||
|
done
|
||||||
|
|
||||||
|
pacman -Qm | while read package version; do
|
||||||
|
eval upstream=$(curl -s "https://aur4.archlinux.org/rpc.php?type=info&arg=$package"|jq '.results.Version?')
|
||||||
|
if [[ -n $upstream && $version != $upstream ]]; then
|
||||||
|
printf "%s :: %s -> %s\n" $package $version $upstream
|
||||||
|
fi
|
||||||
|
done
|
Loading…
Reference in a new issue