diff --git a/bisect/setup.sh b/bisect/setup.sh index 35f3d48f..5017d3c8 100755 --- a/bisect/setup.sh +++ b/bisect/setup.sh @@ -1,8 +1,7 @@ #!/bin/bash source ../utils/utils.sh -make-exercise-repo -config-local-username +pre-setup # Make exercise repo, and setup necessary. echo '#! /usr/bin/env bash' > 'test.sh' echo 'if [[ $(( $(find * | wc -l) + 10 )) -gt 32 ]] ;then' >> 'test.sh' @@ -24,3 +23,4 @@ do git commit -m $i done +post-setup \ No newline at end of file diff --git a/bisect/verify.sh b/bisect/verify.sh index b48740b9..965bb83e 100755 --- a/bisect/verify.sh +++ b/bisect/verify.sh @@ -1,6 +1,6 @@ #! /usr/bin/env sh -cd exercise +cd exercise || exit if [ "$(git log -1 --format='%s' refs/bisect/bad -- )" = '22' ] ; then echo "You managed to find the bad commit with bisect" else