Skip to content

Conversation

ulidtko
Copy link

@ulidtko ulidtko commented Mar 11, 2014

Instead of asking the user to change directory, let the script do it by itself.

$0 expands to the filename of the script, then dirname extracts its
containing directory. cd changes the current directory to it. Then,
everything else works as before.

Instead of asking the user to change directory, let the script do it by itself.

`$0` expands to the filename of the script, then `dirname` extracts its
containing directory. `cd` changes the *current directory* to it. Then,
everything else works as before.
@Caio99BR
Copy link

Dont work properly, this work best Caio99BR-Deprecated@a6ca357

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