Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F9582895
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
584 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/bin/arc b/bin/arc
index bf49fa39..8ca8af85 100755
--- a/bin/arc
+++ b/bin/arc
@@ -1,7 +1,15 @@
-#!/bin/sh
+#!/bin/bash
# NOTE: This file is a wrapper script instead of a symlink so it will work in
# the Git Bash environment in Windows.
-exec `dirname $0`/../scripts/arcanist.php $@
+# Do bash magic to resolve the real location of this script through aliases,
+# symlinks, etc.
+SOURCE="${BASH_SOURCE[0]}";
+while [ -h "$SOURCE" ]; do
+ SOURCE="$(readlink "$SOURCE")";
+done;
+DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
+
+exec $DIR/../scripts/arcanist.php $@
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Oct 11, 08:06 (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
984021
Default Alt Text
(584 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment