"no such pattern" error when executing under sudo
storenth opened this issue · 8 comments
Me too , as i have installed the gf tool and then when i type on terminal gf it shows : no such pattern , if i type gf -list it shows the examples , so i cannot use the tool , its a bug or the problem of parrot systems maybe
My findings:
When performing 'gf --list' I got no results and I found I did not have a ~/.gf directory. I searched and found the json pattern files here: /home/[username]/go/src/github.com/tomnomnom/gf/examples/
My fix:
mkdir ~/.gf && cp /home/[username]/go/src/github.com/tomnomnom/gf/examples/* ~/.gf/
gf works as expected now.
My findings:
When performing 'gf --list' I got no results and I found I did not have a ~/.gf directory. I searched and found the json pattern files here: /home/[username]/go/src/github.com/tomnomnom/gf/examples/
My fix:
mkdir ~/.gf && cp /home/[username]/go/src/github.com/tomnomnom/gf/examples/* ~/.gf/gf works as expected now.
Thnx worked :)
Well , i remember that i found a problem i had got another gf and was not full downloaded , but anyway a fixed it a long time ago
A quick way to find the path to the examples folder is to do a find:
sudo find / -type d -name "tomnomnom"
Once I found the path I followed the rest of the steps that @stlthwzrd outlined :)
My findings:
When performing 'gf --list' I got no results and I found I did not have a ~/.gf directory. I searched and found the json pattern files here: /home/[username]/go/src/github.com/tomnomnom/gf/examples/
My fix: mkdir ~/.gf && cp /home/[username]/go/src/github.com/tomnomnom/gf/examples/* ~/.gf/
gf works as expected now.
This is also not working...
again it shows no such pattern
@Karan4580
Try this :
git clone https://github.com/1ndianl33t/Gf-Patterns
mkdir .gf
mv ~/Gf-Patterns/*.json ~/.gf