Skip to content

Commit 8332b8f

Browse files
authored
Merge pull request tronprotocol#4909 from forfreeday/feature/update_start.sh
feat(shell): update start.sh
2 parents 1dc0c28 + 3ae525c commit 8332b8f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

start.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -541,14 +541,12 @@ while [ -n "$1" ]; do
541541
--run)
542542
if [[ $ALL_OPT_LENGTH -eq 1 ]]; then
543543
restart
544-
exit
545544
fi
546545
RUN=true
547546
shift 1
548547
;;
549548
--stop)
550549
stopService
551-
exit
552550
;;
553551
FullNode)
554552
RUN=true
@@ -597,7 +595,6 @@ if [[ $QUICK_START == true ]]; then
597595
restart
598596
fi
599597
fi
600-
exit
601598
fi
602599

603600
if [[ $UPGRADE == true ]]; then
@@ -614,13 +611,11 @@ if [[ $DOWNLOAD == true ]]; then
614611
fi
615612
fi
616613

617-
if [[ $ALL_OPT_LENGTH -eq 0 ]]; then
614+
if [[ $ALL_OPT_LENGTH -eq 0 || $ALL_OPT_LENGTH -gt 0 ]]; then
618615
restart
619-
exit
620616
fi
621617

622618
if [[ $RUN == true ]]; then
623619
restart
624-
exit
625620
fi
626621

0 commit comments

Comments
 (0)