Skip to content

Commit

Permalink
BUG: Shellcheck fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjohnson-lab authored and Ivan-E-Johnson committed Feb 15, 2024
1 parent 11b2f64 commit 50bb0a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions example_tool/Orthanc/tmux_startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ orthanc_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

# Prompt the user if they want to kill all Orthanc processes
echo "Do you want to kill all Orthanc processes before starting? (y/n)"
read kill_answer
if [ "$kill_answer" = "y" ]; then
read -r kill_answer
if [ "${kill_answer}" = "y" ]; then
echo "Killing all Orthanc processes..."
killall Orthanc || echo "No Orthanc processes were found running."
fi
Expand All @@ -16,15 +16,15 @@ tmux new-session -d -s example_tool_testing

# Create windows for running hospital and internal PACS
tmux new-window -d -t example_tool_testing -n run_hospital
tmux send-keys -t example_tool_testing:run_hospital.0 '/bin/bash $(pwd)/run_hospital.sh' C-m
tmux send-keys -t example_tool_testing:run_hospital.0 "/bin/bash $(pwd)/run_hospital.sh" C-m

tmux new-window -d -t example_tool_testing -n run_internal_pacs
tmux send-keys -t example_tool_testing:run_internal_pacs.0 '/bin/bash $(pwd)/run_internal_pacs.sh' C-m
tmux send-keys -t example_tool_testing:run_internal_pacs.0 "/bin/bash $(pwd)/run_internal_pacs.sh" C-m

# Prompt for uploading example data
echo "Do you want to upload example data? (y/n)"
read upload_answer
if [ "$upload_answer" = "y" ]; then
read -r upload_answer
if [ "${upload_answer}" = "y" ]; then
# Create a new window for uploading data
tmux new-window -d -t example_tool_testing -n upload_data
tmux send-keys -t example_tool_testing:upload_data.0 "python3 '${orthanc_dir}/upload_example_data_to_hospital.py'" C-m
Expand Down

0 comments on commit 50bb0a9

Please sign in to comment.