File tree 4 files changed +6
-57
lines changed
4 files changed +6
-57
lines changed Original file line number Diff line number Diff line change 1
- dist
2
- dist-newstyle
3
- .git
1
+ *
2
+ ! LICENSE
3
+ ! Setup.hs
4
+ ! ShellCheck.cabal
5
+ ! shellcheck.hs
6
+ ! src
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# This script runs 'buildtest' on each of several distros
3
3
# via Docker.
4
-
5
- # shellcheck disable=SC2016
6
-
7
4
set -o pipefail
8
5
9
6
exec 3>&1 4>&2
@@ -35,33 +32,6 @@ echo "Logging to $log" >&3
35
32
exec >> " $log " 2>&1
36
33
37
34
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
-
65
35
while read -r distro setup
66
36
do
67
37
[[ " $distro " = " #" * || -z " $distro " ]] && continue
You can’t perform that action at this time.
0 commit comments