diff --git a/scripts/push.bash b/scripts/push.bash
index 98fd5889e53e920631bfb20662e55af45c9578c4..70a91e643dfe8fd443db8a7f8d4208cb81bb99ea 100755
--- a/scripts/push.bash
+++ b/scripts/push.bash
@@ -4,6 +4,8 @@ ls -la .
 ls -la data
 ls -la log
 
+scripts/./write.bash
+
 pip install multiprocessing_logging
 python3 measure.py
 
diff --git a/scripts/write.bash b/scripts/write.bash
index ab17af69ac00bd81da6e041b3d45c601c991574d..02facadd04b9a6dfdf6d3989ed6cd5f12fcfc29f 100755
--- a/scripts/write.bash
+++ b/scripts/write.bash
@@ -44,6 +44,7 @@ core_list_installed=$(echo "$core_list" | grep "^$core")
 if [[ -z $core_list_installed ]]
 then
     echo -e "\x1b[33mWarning: Core $core for board $fqbn is not installed.\x1b[0m"
+    exit 1
 
     while true; do
         read -p "Would you like to install the core? [Y/n]: " yn