From 578e04e09884575dbe3ba251418be99b80b692ea Mon Sep 17 00:00:00 2001
From: Hunter Goldstein <hunter.d.goldstein@gmail.com>
Date: Sat, 1 Jul 2017 11:57:43 -0400
Subject: [PATCH] force run_examples.sh to use project root as working
 directory (#357)

---
 examples/run_examples.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/run_examples.sh b/examples/run_examples.sh
index c6c62b3d..bfea101f 100755
--- a/examples/run_examples.sh
+++ b/examples/run_examples.sh
@@ -11,6 +11,10 @@ PROJECT_DIR=$(dirname $(cargo locate-project | awk -F\" '{print $4}'))
 
 EXIT_VAL=0
 
+# Some of the examples assume that the working directory is the project root
+# and it never hurts to force consistency regardless
+cd $PROJECT_DIR
+
 function check_return_value {
 
     # Check number of parameters passed into the check function
-- 
GitLab