Skip to content

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.

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