diff --git a/bisect/setup.sh b/bisect/setup.sh index d2c8bf79..5017d3c8 100755 --- a/bisect/setup.sh +++ b/bisect/setup.sh @@ -1,7 +1,7 @@ #!/bin/bash source ../utils/utils.sh -make-exercise-repo +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' @@ -23,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 fa666300..965bb83e 100755 --- a/bisect/verify.sh +++ b/bisect/verify.sh @@ -1,7 +1,7 @@ #! /usr/bin/env sh -cd exercise -if [[ "$(git log -1 --format='%s' refs/bisect/bad -- )" = '22' ]] ; then +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 echo "You have still stuff to do"