Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add environment variable for location of wordlist #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hughdavenport
Copy link

This allows you to call genhost from anywhere (it may be in your ~/bin).

This fixes a bug with it wouldn't use the wordlist variable, and always use the file wordlist.

This allows you to call genhost from anywhere (it may be in your ~/bin).

This fixes a bug with it wouldn't use the wordlist variable, and always use the file `wordlist`.
Copy link
Owner

@elasticdog elasticdog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution! I have one small suggested tweak to help prevent issues if there are spaces in the directory name, but otherwise I'd be glad to get this merged.

@@ -75,7 +75,7 @@ else
;;
esac
elif [[ $1 == "list" ]]; then
grep "#" wordlist | sed 's/#//'
grep "#" ${wordlist} | sed 's/#//'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you quote this variable to prevent word splitting?

hughdavenport added a commit to hughdavenport/dotfiles that referenced this pull request May 20, 2020
Need to wait for upstream elasticdog/genhost#7 and then can use submodules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants