File: check-version

package info (click to toggle)
findimagedupes 2.20.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 828 kB
  • sloc: perl: 1,067; makefile: 43; sh: 32
file content (12 lines) | stat: -rw-r--r-- 287 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh
# check-version: prevent regression from #1023939.
set -e
printf '$ findimagedupes --version\n'
findimagedupes --version
if ! findimagedupes --version \
   | cut -d' ' -f 2 \
   | grep -q '\<[0-9]\(.\|[0-9]\)*\>'
then
	printf 'error: missing version number.\n' >&2
	exit 1
fi