From ae447a7a60d1137b5015c4ceee5ad4f0c5c856c9 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 12 Dec 2024 13:45:26 +0100 Subject: [PATCH] Add fileshare and web setting on bin/run --- bin/run | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/bin/run b/bin/run index 9db7e93f..e3cdef28 100755 --- a/bin/run +++ b/bin/run @@ -1,5 +1,17 @@ #!/bin/bash +set -e + +FILESHARE=false +WEB=false + +while getopts f opt; do + case $opt in + f) FILESHARE=true ;; + w) WEB=true ;; + esac +done + tmux new-session -d -s test tmux send-keys -t test "a serve" Enter @@ -12,11 +24,11 @@ tmux send-keys -t test "SS start docker && duu socketi" Enter tmux new-window -t test tmux send-keys -t test "nrh" Enter -tmux new-window -t test -tmux send-keys -t test "ggwdk && cd plugins/silva/adrema/assets/vendor/adrema-form && nrd" Enter +$WEB && tmux new-window -t test +$WEB && tmux send-keys -t test "ggwdk && cd plugins/silva/adrema/assets/vendor/adrema-form && nrd" Enter -tmux new-window -t test -tmux send-keys -t test "cd tests/Fileshare && docker compose up" Enter +$FILESHARE && tmux new-window -t test +$FILESHARE && tmux send-keys -t test "cd tests/Fileshare && docker compose up" Enter tmux attach-session -t test