dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit abeb0dc386cb5506b3f5779dbe6e4784dc817746
parent 244b3c925cfadb7823030a39df84f76b1f4f4b73
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri, 22 May 2020 10:06:24 -0400

Sudo: Use $fname instead of hard-coded test value

Diffstat:
Mlib/acme/Sudo | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/acme/Sudo b/lib/acme/Sudo @@ -21,8 +21,8 @@ else fname=$(pwd)/$1 fi echo name $fname | 9p write acme/new/ctl - winid=$(9p read acme/index | awk '{ print $1 " " $6 }' | grep /etc/pf.conf | awk '{ print $1 }') + winid=$(9p read acme/index | awk '{ print $1 " " $6 }' | grep $fname | awk '{ print $1 }') echo -n 'Sudo ' | 9p write acme/$winid/tag $sudo /bin/cat $fname | 9p write acme/$winid/body echo clean | 9p write acme/$winid/ctl -fi- \ No newline at end of file +fi