summaryrefslogtreecommitdiffstats
path: root/utils/fscrypt/test-version.sh
blob: 32f6a6c1251cc4ef3505f41dcc28fa750c246edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
#
# Version check override for the fscrypt package.
#
# fscrypt does not support --version, -V, or --help flags for reporting its
# version; it only prints the version via the "fscrypt version" subcommand.
# pam_fscrypt.so is a PAM module, not a standalone executable, so it has no
# version output either.

case "$1" in
fscrypt)
	fscrypt --version 2>&1 | grep -F "$2"
	;;
*)
	echo "Untested package: $1" >&2
	exit 1
	;;
esac