8a809b46-cd13-403b-af62-5983d72a0434
authordaniel watson <ozzloy@gmail.com>
Sun, 3 Jun 2018 00:12:04 +0000 (17:12 -0700)
committerdaniel 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

index b95c723d668bc42948cc0e398e22de4305277023..4bf81a003a2813c15108c34c3a49adf5644ebb5d 100755 (executable)
@@ -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}"
-    cd ..
+    cd .. || exit 1 # in case cd fails
     cp -r "${project}" "${temp_project_dir}"
-    cd "${temp_project_dir}"
+    cd "${temp_project_dir}" || exit 1 # in case cd fails
     if make test; then
-      cd "../${project}"
+      cd "../${project}" || exit 1 # in case cd fails
       git add .
       git commit -am "${uuid}
 
 ${datetime}"
     fi
-    cd ..
+    cd .. || exit 1 # in case cd fails
     rm -rf "${temp_project_dir}"
-    cd "${project}"
+    cd "${project}" || exit 1 # in case cd fails
   fi
 done