From 35eab73d6da9c9ba06b598090cb1dc21f650abe7 Mon Sep 17 00:00:00 2001 From: Dan Langille Date: Tue, 11 Feb 2025 11:14:13 -0500 Subject: [PATCH] Fix the method we use for detecting the repo. re: https://github.com/dlangille/SamDrucker/issues/1#issuecomment-2645233332 Helps with #1 --- clients/samdrucker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/samdrucker.sh b/clients/samdrucker.sh index 81b41e1..01452c4 100755 --- a/clients/samdrucker.sh +++ b/clients/samdrucker.sh @@ -18,7 +18,7 @@ # # I am using the FreeBSD textproc/jo: # -# $ jo -p name=`hostname` os=`uname` version=`uname -r` repo=`pkg -vv | grep url | cut -f2 -d \"` +# $ jo -p name=`hostname` os=`uname` version=`uname -r` repo=`pkg -vv | grep ' url' | cut -f2 -d \"` # { # "name": "samdrucker.int.unixathome.org", # "os": "FreeBSD", @@ -49,7 +49,7 @@ done hostname=`/bin/hostname` uname=`/usr/bin/uname` version=`/bin/freebsd-version` -repo=`/usr/sbin/pkg -vv | $GREP url | $CUT -f2 -d \"` +repo=`/usr/sbin/pkg -vv | $GREP ' url' | $CUT -f2 -d \"` # we save this to a file to avoid potential command line arguement overflow payload=$(mktemp /tmp/SamDrucker.payload.XXXXXX)