Skip to content

Conversation

@allan-kg
Copy link

Instead of hardcoding '/usr', use the prefix according to the environment.

It also :

  • Creates missing directories if necessary (equivalent of mkdir -p)
  • Uses target paths as variables instead of hardcoded strings.
    • Differentiating between path, file, and dir is something that I was thinking about when writing and I chose to use path on all of them. If it is preferable to differentiate, please let me know.

Instead of hardcoding '/usr', use the prefix according to the environment.
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.

1 participant