Skip to content

Commit 7d2c18f

Browse files
committedNov 4, 2024
Use pre-setup & post-setup as suggested in review
1 parent 88f4bcf commit 7d2c18f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎bisect/setup.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/bash
22
source ../utils/utils.sh
33

4-
make-exercise-repo
5-
config-local-username
4+
pre-setup # Make exercise repo, and setup necessary.
65

76
echo '#! /usr/bin/env bash' > 'test.sh'
87
echo 'if [[ $(( $(find * | wc -l) + 10 )) -gt 32 ]] ;then' >> 'test.sh'
@@ -24,3 +23,4 @@ do
2423
git commit -m $i
2524
done
2625

26+
post-setup

‎bisect/verify.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /usr/bin/env sh
22

3-
cd exercise
3+
cd exercise || exit
44
if [ "$(git log -1 --format='%s' refs/bisect/bad -- )" = '22' ] ; then
55
echo "You managed to find the bad commit with bisect"
66
else

0 commit comments

Comments
 (0)
Failed to load comments.