]> khamidou — GitHub mirrors - arcanist.git/commit
Resolve arc location through symlinks-of-symlinks, etc
authorepriestley <git@epriestley.com>
Thu, 22 Mar 2012 01:04:35 +0000 (18:04 -0700)
committerepriestley <git@epriestley.com>
Thu, 22 Mar 2012 01:04:35 +0000 (18:04 -0700)
commit7c3f8b3041b6d904350563fe4437530db029f583
tree7781ddcc0c09e6ebbc931d268b5fbd7d48edcdfe
parente8accf4b9f4e78107e7dea2f82f8b5ac03eb3d1c
Resolve arc location through symlinks-of-symlinks, etc

Summary:
Stole this from stackoverflow; seems to work?

http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in

Test Plan: Ran a symlink to bin/arc.

Reviewers: btrahan, zeeg

Reviewed By: btrahan

CC: aran, epriestley
Maniphest Tasks: T124

Differential Revision: https://secure.phabricator.com/D1968
bin/arc