From c01c0b11daf1a1d42ae6e6d67ab79f7fc340bc0f Mon Sep 17 00:00:00 2001
From: root
Date: Sun, 19 May 2019 20:12:00 +1000
Subject: Remove double [] from the tmux tabs.

---
 scripts/start-sim | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

(limited to 'scripts/start-sim')

diff --git a/scripts/start-sim b/scripts/start-sim
index 936fe13..a707ddf 100755
--- a/scripts/start-sim
+++ b/scripts/start-sim
@@ -89,7 +89,7 @@ case $(basename $0) in
 		chmod 640 ../config/Robust.ini
 		${tmux_command} split-window -hp 50 -t "${tmux_session}:" "${cmd}"
 	    else
-		${tmux_command} new-window -dn "[${title}]" -t "${tmux_session}:${num}" "${cmd}"
+		${tmux_command} new-window -dn "${title}" -t "${tmux_session}:${num}" "${cmd}"
 	    fi
 	fi
 
@@ -121,8 +121,8 @@ case $(basename $0) in
 	if [ -e /var/run/opensim/${tgt}.pid ]; then
 	    ${tmux_send}:"[${title}]" "${cmd}" Enter
 	    # Generate the map tiles, coz the good generator leaks memory badly if you leave it turned on.
-	    ${tmux_send}:"[${title}]" "generate map" Enter
-	    ${tmux_send}:"[${title}]" "force gc" Enter
+	    ${tmux_send}:"${title}" "generate map" Enter
+	    ${tmux_send}:"${title}" "force gc" Enter Enter Enter
 	else
 	    echo "No OAR created for ${title}, it's not running."
 	fi
@@ -130,13 +130,13 @@ case $(basename $0) in
 
     "stop-sim")
 	if [ -e /var/run/opensim/${tgt}.pid ]; then
-	    ${tmux_send}:"[${title}]" "alert WARNING - Emergency shutdown in one minute!" Enter
-	    ${tmux_send}:"[${title}]" "alert WARNING - Emergency shutdown in one minute!" Enter
+	    ${tmux_send}:"${title}" "alert WARNING - Emergency shutdown in one minute!" Enter
+	    ${tmux_send}:"${title}" "alert WARNING - Emergency shutdown in one minute!" Enter
 	    sleep 30
-	    ${tmux_send}:"[${title}]" "alert WARNING - Emergency shutdown in thirty seconds!" Enter
-	    ${tmux_send}:"[${title}]" "alert WARNING - Emergency shutdown in thirty seconds!" Enter
+	    ${tmux_send}:"${title}" "alert WARNING - Emergency shutdown in thirty seconds!" Enter
+	    ${tmux_send}:"${title}" "alert WARNING - Emergency shutdown in thirty seconds!" Enter
 	    sleep 30
-	    ${tmux_send}:"[${title}]" "shutdown" Enter
+	    ${tmux_send}:"${title}" "shutdown" Enter
 	else
 	    echo "Sim ${title} is not running, so not stopping."
 	fi
-- 
cgit v1.1