mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-23 05:50:54 +01:00
0d76ac6968
Summary: The new wrapper shell script that is bin/arc does not correctly handle arguments with spaces in them. Test Plan: added a print_r($argv) to scripts/arcanist.php and ran bin/arc -m "testing something" to see that "testing something" got passed in as one argument instead of two. Reviewers: jungejason, epriestley Reviewed By: epriestley CC: aran Differential Revision: https://secure.phabricator.com/D2066
15 lines
406 B
Bash
Executable file
15 lines
406 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# NOTE: This file is a wrapper script instead of a symlink so it will work in
|
|
# the Git Bash environment in Windows.
|
|
|
|
# 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 "$@"
|
|
|