Skip to content

Commit

Permalink
Use pre-setup & post-setup as suggested in review
Browse files Browse the repository at this point in the history
  • Loading branch information
JKrag committed Nov 4, 2024
1 parent a59cb94 commit 913b575
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bisect/setup.sh
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -24,3 +23,4 @@ do
git commit -m $i
done

post-setup
2 changes: 1 addition & 1 deletion bisect/verify.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 913b575

Please sign in to comment.