machine_setup/ansible/roles/package_manager/files/pkgbase_diff.bash

9 lines
346 B
Bash
Raw Normal View History

2024-07-04 18:44:32 +00:00
#!/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')