From fd6a42ccaec629dfd8a3fcc1bf06ccc6817b8ba5 Mon Sep 17 00:00:00 2001 From: Rushmore75 Date: Tue, 3 Feb 2026 13:50:18 -0700 Subject: [PATCH] change to more stable options --- wrapper.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/wrapper.sh b/wrapper.sh index bbd1bc9..ae43865 100755 --- a/wrapper.sh +++ b/wrapper.sh @@ -1,15 +1,10 @@ #!/bin/bash -# Make a buffered FIFO queue -mkfifo /tmp/fifo 2> /dev/null -exec 4<> /tmp/fifo +TMP=$(mktemp) # Put the output to fd 4 and put the TUI to 2, since pipes redirect 1 by default -cat /dev/stdin | ./target/release/select_option /proc/self/fd/4 1>&2 +cat /dev/stdin | ./target/release/select_option $TMP 1>&2 -read -r VAL < /proc/self/fd/4 - -echo $VAL - -rm /tmp/fifo +cat $TMP +rm $TMP