diff options
author | Christos.K <freedomrfox@gmail.com> | 2017-07-20 12:50:16 +0300 |
---|---|---|
committer | Christos.K <freedomrfox@gmail.com> | 2017-07-20 12:50:16 +0300 |
commit | 3187dafd14f48b54c65ed1f3f2aee73097b5ca82 (patch) | |
tree | 4e6fe177442ab618daaeb9b9dd69a3cc965122c4 /bin | |
parent | Included custom net & custom scripts inst_hook entries (diff) | |
download | GSE-3187dafd14f48b54c65ed1f3f2aee73097b5ca82.tar.gz GSE-3187dafd14f48b54c65ed1f3f2aee73097b5ca82.tar.bz2 GSE-3187dafd14f48b54c65ed1f3f2aee73097b5ca82.zip |
Included controller if condition
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gse | 36 |
1 files changed, 22 insertions, 14 deletions
@@ -141,21 +141,29 @@ while true; do done } -if echo "$@" | grep -q '\--time-warp' && [[ "$#" != 1 ]]; then - die "Error: Time Warp must be the only entry" -fi +if echo "$@" | grep -q '\--build-controller'; then + if _controller_args "$@"; then + _controller_only "$@" + else + die "Given controller arguments could not be exported" + fi +else + if echo "$@" | grep -q '\--time-warp' && [[ "$#" != 1 ]]; then + die "Error: Time Warp must be the only entry" + fi -if echo "$@" | grep -q '\--edit' && [[ "$#" != 2 ]]; then - die "Error: Edit must be the only entry" -fi + if echo "$@" | grep -q '\--edit' && [[ "$#" != 2 ]]; then + die "Error: Edit must be the only entry" + fi -lppar=() -for i in "$@"; do - lppar+=("$i") -done + lppar=() + for i in "$@"; do + lppar+=("$i") + done -if [[ -z "$@" ]] || echo "$@" | grep -q '\-mm'; then - mainlp_f "MM" "${lppar[@]}" && unset BACKTO && exit 0 -else - warp "$@" + if [[ -z "$@" ]] || echo "$@" | grep -q '\-mm'; then + mainlp_f "MM" "${lppar[@]}" && unset BACKTO && exit 0 + else + warp "$@" + fi fi
\ No newline at end of file |