From 9a8c971d73b63cbcbe1d47dfb4f4ac7529983cc1 Mon Sep 17 00:00:00 2001 From: Arthur Roberts Date: Tue, 19 Aug 2025 23:26:50 +0100 Subject: [PATCH] Made script mroe POSIX compliant Remove the "here-string" (<<<) with a "here-document" (<< EOF ... EOF) --- scryfall_deser/scripts/search_with_rofi.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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)