projects
/
coding-replay
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c42a28d
)
8a809b46-cd13-403b-af62-5983d72a0434
author
daniel watson
<ozzloy@gmail.com>
Sun, 3 Jun 2018 00:12:04 +0000
(17:12 -0700)
committer
daniel watson
<ozzloy@gmail.com>
Sun, 3 Jun 2018 00:12:04 +0000
(17:12 -0700)
2018-06-03-00-12-04.
376666291
coding-replay.bash
patch
|
blob
|
blame
|
history
diff --git
a/coding-replay.bash
b/coding-replay.bash
index b95c723d668bc42948cc0e398e22de4305277023..4bf81a003a2813c15108c34c3a49adf5644ebb5d 100755
(executable)
--- a/
coding-replay.bash
+++ b/
coding-replay.bash
@@
-18,19
+18,19
@@
while sleep 1; do
datetime=$(date -u '+%Y-%m-%d-%H-%M-%S.%N')
uuid=$(uuid -v4)
temp_project_dir="${project}-${datetime}-${uuid}"
datetime=$(date -u '+%Y-%m-%d-%H-%M-%S.%N')
uuid=$(uuid -v4)
temp_project_dir="${project}-${datetime}-${uuid}"
- cd ..
+ cd ..
|| exit 1 # in case cd fails
cp -r "${project}" "${temp_project_dir}"
cp -r "${project}" "${temp_project_dir}"
- cd "${temp_project_dir}"
+ cd "${temp_project_dir}"
|| exit 1 # in case cd fails
if make test; then
if make test; then
- cd "../${project}"
+ cd "../${project}"
|| exit 1 # in case cd fails
git add .
git commit -am "${uuid}
${datetime}"
fi
git add .
git commit -am "${uuid}
${datetime}"
fi
- cd ..
+ cd ..
|| exit 1 # in case cd fails
rm -rf "${temp_project_dir}"
rm -rf "${temp_project_dir}"
- cd "${project}"
+ cd "${project}"
|| exit 1 # in case cd fails
fi
done
fi
done