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

Script can't be called from everywhere #14

Open
noraj opened this issue Sep 20, 2018 · 1 comment
Open

Script can't be called from everywhere #14

noraj opened this issue Sep 20, 2018 · 1 comment

Comments

@noraj
Copy link

noraj commented Sep 20, 2018

In mara.sh an maybe in other scripts, a lot of cd and ../../ are used referring from the root of the project ignoring where the script was called from, despite of being ugly, this force the user to change his current directory to the root directory of mara project. So the script can't be launched from everywhere else.

There is an article The Right Way to Get the Directory of a bash Script which seems to have a better approach for calling resources. It would be great to apply that solution.

@xtiankisutsa
Copy link
Owner

Thank you for this suggestion and the reference article. I agree with your sentiments. I'll look into this solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants