Conversation
Notices
-
Annah (maiyannah@community.highlandarrow.com)'s status on Monday, 03-Apr-2017 07:28:00 UTC Annah @m0n5t3r I went:
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
APP_ROOT="$(cd -P ..; pwd)"- Hallå Kitteh repeated this.
-
Annah (maiyannah@community.highlandarrow.com)'s status on Sunday, 02-Apr-2017 23:01:15 UTC Annah Who knew that getting the parent of the present working directory in a way that you can execute a script from anywheres would be such a pain in BASH.
Maybe I'll just write a tcsh script.Hallå Kitteh repeated this. -
Hallå Kitteh (clacke@social.heldscal.la)'s status on Monday, 03-Apr-2017 07:44:38 UTC Hallå Kitteh @maiyannah @m0n5t3r That is, in fact, the canonical way to do it.