Skip to content

Commit

Permalink
Fix the method we use for detecting the repo.
Browse files Browse the repository at this point in the history
re: #1 (comment)

Helps with #1
  • Loading branch information
dlangille committed Feb 11, 2025
1 parent 82bfac3 commit 35eab73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/samdrucker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 35eab73

Please sign in to comment.