Skip to content

Commit

Permalink
Removed --attach and added --detach flag
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrinivas8687 committed Mar 8, 2023
1 parent 8716644 commit ca8902f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -413,17 +413,17 @@ function cmd_start {
echo " help Print the help message"
echo ""
echo "Options:"
echo " -a, --attach Start the node container attached"
echo " -d, --detach Start the node container detached"
}

local detach=1
local rm=0
local detach=0
local rm=1

if [[ "${#}" -gt 0 ]]; then
case "${1}" in
"-a" | "--attach")
detach=0
rm=1
"-d" | "--detach")
detach=1
rm=0
;;
"help")
cmd_help && return 0
Expand Down Expand Up @@ -552,12 +552,12 @@ function cmd_restart {
echo " help Print the help message"
echo ""
echo "Options:"
echo " -a, --attach Start the node container attached"
echo " -d, --detach Start the node container detached"
}

if [[ "${#}" -gt 0 ]]; then
case "${1}" in
"-a" | "--attach") ;;
"-d" | "--detach") ;;
"help")
cmd_help && return 0
;;
Expand Down

0 comments on commit ca8902f

Please sign in to comment.