File: pre-commit.sh

package info (click to toggle)
libdatetime-timezone-perl 1%3A2.60-1%2B2024a
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,188 kB
  • sloc: perl: 2,732; sh: 59; makefile: 10
file content (15 lines) | stat: -rwxr-xr-x 184 bytes parent folder | download | duplicates (30)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

status=0

PRECIOUS=$(which precious)
if [[ -z $PRECIOUS ]]; then
    PRECIOUS=./bin/precious
fi

"$PRECIOUS" lint -s
if (( $? != 0 )); then
    status+=1
fi

exit $status