diff --git a/autorun.sh b/autorun.sh old mode 100644 new mode 100755 index 36f88f6..e5e7803 --- a/autorun.sh +++ b/autorun.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/bash git stash git pull @@ -10,4 +10,7 @@ cargo run --release --bin audio_engine & AUDIO_ENGINE_PID=$! cargo run --release --bin gui -- -f& -GUI_PID=$! \ No newline at end of file +GUI_PID=$! + +wait -n "$JACK_PID" "$AUDIO_ENGINE_PID" "$GUI_PID" +kill "$JACK_PID" "$AUDIO_ENGINE_PID" "$GUI_PID" \ No newline at end of file