File: version

package info (click to toggle)
geary 46.0-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,084 kB
  • sloc: javascript: 972; ansic: 722; sql: 247; xml: 183; python: 30; makefile: 28; sh: 24
file content (8 lines) | stat: -rwxr-xr-x 275 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
#!/bin/bash
verstring="$(LC_ALL=C geary --version)"
instvers="$(dpkg-query -f '${Version}' --show geary | cut -f1 -d-)"
expected="geary: $instvers"
if [ "$verstring" != "$expected" ]; then
    printf >&2  "Expected: %s\n     Got: %s\n" "$expected" "$verstring"
    exit 1
fi