cleaned up bashisms

This commit is contained in:
Luxferre
2026-07-27 20:33:44 +03:00
parent 3c952b7631
commit 9775b3edc4
9 changed files with 46 additions and 46 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ while true; do
slist="$(nl -nln -w1 -s' - ' "$SPFILE")"
sname="$(printf '%s\nNew\nQuit\n' "$slist" | grep . | fzf --tac --footer="$FTR")"
[ "$sname" = 'Quit' ] && break
[ "$sname" = 'New' ] && read -r -p 'New session name: ' sname
[ "$sname" = 'New' ] && printf 'New session name: ' && read -r sname
sname="$(echo "$sname" | sed -E 's/^[0-9]+\ -\ //')"
if [ -n "$sname" ]; then
expect -c "spawn abduco -A \"$sname\" $SHELL; send \"\014\"; interact"