Skip to content

Commit 8b10d95

Browse files
author
jschlind411
committed
Finalizing cleanup and finishing testing. Made more intuitive and less clunky
1 parent 3d3d83f commit 8b10d95

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

misc/deploy.sh

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ dirName="$(basename `pwd`)"
1212
#Functions
1313
#--------------------------------------------------------------------------
1414

15-
setTitle() {
16-
echo -e "\033]0;$@\007"
17-
}
18-
1915
Check()
2016
{
2117

@@ -103,6 +99,9 @@ Run()
10399

104100
DispOpt()
105101
{
102+
clear
103+
104+
echo "Your network info: $hostName@$userIP"
106105
echo ""
107106
echo "Type 'exit' to quit"
108107

@@ -171,8 +170,6 @@ fi
171170

172171
clear
173172

174-
echo "Your network info: $hostName@$userIP"
175-
176173
#check OPTION given
177174
#------------------------------------------------------------
178175

@@ -204,7 +201,6 @@ if [ $OPTION == "-G" ]; then
204201
Check
205202
PullGit_Pack
206203

207-
208204
while(true); do
209205
read -p "Rover Name/IP To Start: " roverIP
210206
if [ "$roverIP" = "exit" ]; then
@@ -228,15 +224,13 @@ if [ $OPTION == "-G" ]; then
228224

229225
#If rover is on the network
230226
ping -q -w2 $roverIP > /dev/null
231-
232227
if [ $? -eq 0 ]; then
233228

234229
SuccessPing
235230

236231
#Transfer/Unpack/Run
237232
Transfer
238233
Unpack_Run
239-
240234
sleep 10
241235

242236
#if not on the network
@@ -282,31 +276,26 @@ if [ $OPTION == "-L" ]; then
282276

283277
#If rover is on the network
284278
ping -q -w2 $roverIP > /dev/null
285-
286279
if [ $? -eq 0 ]; then
287280

288281
SuccessPing
289282

290283
#Transfer/Unpack/Run
291284
Transfer
292285
Unpack_Run
293-
294286
sleep 10
295287

296288
#if not on the network
297289
else
298290
FailPing
299291
fi
300-
301292
done
302-
303293
fi
304294

305295
#Just Run
306296
#-------------------------------------------------------------
307297
if [ $OPTION == "-R" ]; then
308298

309-
310299
DispOpt
311300

312301
echo "Running current swarmie(s) code"
@@ -334,17 +323,13 @@ if [ $OPTION == "-R" ]; then
334323
if [ $? -eq 0 ]; then
335324

336325
SuccessPing
337-
338-
#Run Rover Script
339326
Run
340-
341327
sleep 10
342328

343329
#if not on the network
344-
else
330+
else
345331
FailPing
346332
fi
347-
348333
done
349334
fi
350335

0 commit comments

Comments
 (0)