Signalize run-agl-postinsts error appropriately to systemd
[AGL/meta-agl.git] / meta-agl-profile-core / recipes-devtools / run-agl-postinsts / run-agl-postinsts / run-agl-postinsts
index 1d1a5a0..a044fb7 100755 (executable)
@@ -45,4 +45,6 @@ systemctl daemon-reload
 # since all postinstalls executed successfully, remove the postinstalls directory
 if [ $remove_agl_pi_dir = 1 ]; then
     rm -rf $agl_pi_dir
+    exit 0
 fi
+exit 1