mxcl / swift-sh

Easily script with third-party Swift dependencies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting CWD

EricKuck opened this issue · comments

I don't believe there's currently a way for a script to see which directory it's being run from. Using Path.cwd gives something like /Users/me/Library/Developer/swift-sh.cache/scriptname. Is there a way to get the terminal's current directory?

Will fix today

Fixed and deployed in 1.4.2. Thanks for the report!