Much stronger scripts, with shellcheck and () for function body
[iomenu.git] / io-abduco
blob84d8ee7040324d1e1c8373eeea95d85837179815
1 # Prompt for an abduco session to attach to
3 name="$(
4         printf '#%s' "$(
5                 abduco | sed -r 's/(.*)\t(.*)/\2 # \1/'
6         )" | iomenu -s '#'
7 )"
9 if [ -z "$ABDUCO" ] && [ "$name" ]
10 then
11         TERM=screen ABDUCO="$name" exec abduco -A "$name" io-run