Skip to content

Commit b0f0501

Browse files
committed
Revert "Allow running this repo as a pre-commit hook"
This reverts commit 9d64d78.
1 parent 9d64d78 commit b0f0501

File tree

4 files changed

+6
-57
lines changed

4 files changed

+6
-57
lines changed

.dockerignore

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
dist
2-
dist-newstyle
3-
.git
1+
*
2+
!LICENSE
3+
!Setup.hs
4+
!ShellCheck.cabal
5+
!shellcheck.hs
6+
!src

.pre-commit-hooks.yaml

-6
This file was deleted.

Dockerfile

-18
This file was deleted.

test/distrotest

-30
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/bin/bash
22
# This script runs 'buildtest' on each of several distros
33
# via Docker.
4-
5-
# shellcheck disable=SC2016
6-
74
set -o pipefail
85

96
exec 3>&1 4>&2
@@ -35,33 +32,6 @@ echo "Logging to $log" >&3
3532
exec >> "$log" 2>&1
3633

3734
final=0
38-
39-
echo "Trying to build pre-commit docker image"
40-
if ! docker build --tag precommit .
41-
then
42-
final=1
43-
echo "pre-commit image failed to build"
44-
else
45-
if printf '%s\n' '#!/bin/sh' 'echo $1' | docker run -i precommit -
46-
then
47-
final=1
48-
echo "pre-commit image succeeds with incorrect example"
49-
fi
50-
51-
if ! printf '%s\n' '#!/bin/sh' 'echo "$1"' | docker run -i precommit -
52-
then
53-
final=1
54-
echo "pre-commit image fails with correct example"
55-
fi
56-
fi
57-
58-
if [[ $final -ne 0 ]]
59-
then
60-
echo >&3 "pre-commit image failure, see log"
61-
else
62-
echo >&3 "pre-commit image succeeded"
63-
fi
64-
6535
while read -r distro setup
6636
do
6737
[[ "$distro" = "#"* || -z "$distro" ]] && continue

0 commit comments

Comments
 (0)