diff --git a/scryfall_deser/scripts/search_with_rofi.sh b/scryfall_deser/scripts/search_with_rofi.sh index 83efe23..d2b60f8 100755 --- a/scryfall_deser/scripts/search_with_rofi.sh +++ b/scryfall_deser/scripts/search_with_rofi.sh @@ -1,8 +1,11 @@ -#!/bin/bash +#!/bin/sh CARDS=$(/home/arthurr/code/mini_projects/scryfall_deser/target/debug/scryfall_deser $@) -SELECTION=$(rofi -dmenu <<< "$CARDS") +SELECTION=$(rofi -dmenu << EOF +"$CARDS" +EOF +) CARD_OUTPUT=$(/home/arthurr/code/mini_projects/scryfall_deser/target/debug/scryfall_deser --exact $SELECTION)