Files
mini_projects/scryfall_deser/scripts/search_with_rofi.sh
Arthur Roberts 9a8c971d73 Made script mroe POSIX compliant
Remove the "here-string" (<<<) with a "here-document" (<< EOF ... EOF)
2025-08-19 23:26:50 +01:00

16 lines
393 B
Bash
Executable File

#!/bin/sh
CARDS=$(/home/arthurr/code/mini_projects/scryfall_deser/target/debug/scryfall_deser $@)
SELECTION=$(rofi -dmenu << EOF
"$CARDS"
EOF
)
CARD_OUTPUT=$(/home/arthurr/code/mini_projects/scryfall_deser/target/debug/scryfall_deser --exact $SELECTION)
# If you double check the first rofi selection it seems to prevent the error window from popping up
sleep 0.05
rofi -e "$CARD_OUTPUT"