From 20c469245c42fefb99240dbcaeffc24e65267709 Mon Sep 17 00:00:00 2001 From: Ayla Ounce Date: Sun, 10 Apr 2022 14:12:24 -0700 Subject: [PATCH] Fix beesd script arg parsing to respect PREFIX Without this, if you install to a different PREFIX such as /usr/local it will fail to recognize any arguments and if you use the systemd unit, that makes --no-timestamps the first NOT_SUPPORTED_ARG which will get passed to uuidparse, which doesn't recognize it and errors. --- scripts/beesd.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/beesd.in b/scripts/beesd.in index 0e0bdb6..b1f0388 100755 --- a/scripts/beesd.in +++ b/scripts/beesd.in @@ -31,7 +31,7 @@ help(){ exec "$bees_bin" --help } -for i in $(/usr/lib/bees/bees --help 2>&1 | grep "\-\-" | sed -e "s/^[^-]*-/-/" -e "s/,[^-]*--/ --/" -e "s/ [^-]*$//") +for i in $("$bees_bin" --help 2>&1 | grep "\-\-" | sed -e "s/^[^-]*-/-/" -e "s/,[^-]*--/ --/" -e "s/ [^-]*$//") do TMP_ARGS="$TMP_ARGS $i" done