Add pkgbase_diff script.

This commit is contained in:
Tom Alexander
2024-07-04 14:44:32 -04:00
parent fb679924bc
commit 63a966947b
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
#
# Show the diff to have local pkgbase become matching to the remote pkgbase
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
diff --color=always <(doas pkg info --glob 'FreeBSD-*' | sed 's/-[0-9]*.snap[0-9]*//g') <(doas pkg search -q --glob 'FreeBSD-*' | sed 's/-[0-9]*.snap[0-9]*//g')