aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChristos.K <freedomrfox@gmail.com>2017-07-20 12:50:16 +0300
committerChristos.K <freedomrfox@gmail.com>2017-07-20 12:50:16 +0300
commit3187dafd14f48b54c65ed1f3f2aee73097b5ca82 (patch)
tree4e6fe177442ab618daaeb9b9dd69a3cc965122c4 /bin
parentIncluded custom net & custom scripts inst_hook entries (diff)
downloadGSE-3187dafd14f48b54c65ed1f3f2aee73097b5ca82.tar.gz
GSE-3187dafd14f48b54c65ed1f3f2aee73097b5ca82.tar.bz2
GSE-3187dafd14f48b54c65ed1f3f2aee73097b5ca82.zip
Included controller if condition
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gse36
1 files changed, 22 insertions, 14 deletions
diff --git a/bin/gse b/bin/gse
index 7e44e65..f608651 100755
--- a/bin/gse
+++ b/bin/gse
@@ -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