shorten use.dcgi - dotg - Day Of The GrParazyd
HTML git clone git://bitreich.org/dotg git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dotg
DIR Log
DIR Files
DIR Refs
DIR Tags
---
DIR commit 426b6226b3f241ffe2486325b1e0417fd3204433
DIR parent 74b73ef589543b707afb73fee8f956b8a5e7d7fe
HTML Author: parazyd <parazyd@dyne.org>
Date: Fri, 23 Feb 2018 18:27:00 +0100
shorten use.dcgi
Diffstat:
M act-i/use.dcgi | 21 +++++----------------
1 file changed, 5 insertions(+), 16 deletions(-)
---
DIR diff --git a/act-i/use.dcgi b/act-i/use.dcgi
@@ -12,28 +12,17 @@ call="$(find_usecase $itemname $currentloc)"
case "$call" in
No*)
- cat <<EOM
-$call
-
-[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]
-EOM
- return
+ echo "$call"
;;
use-generic*)
use_generic "$itemname"
- cat <<EOM
-
-[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]
-EOM
- return
;;
use-specific*)
use_specific "$(echo $call | awk -F, '{print $2}')" "$itemname"
- cat <<EOM
-
-[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]
-EOM
- return
;;
esac
+cat <<EOM
+
+[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]
+EOM