Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Unified Diff: tools/cr/cr-bash-helpers.sh

Issue 221173010: Fixing cr-bash-helpers.sh for zsh. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cr/cr-bash-helpers.sh
diff --git a/tools/cr/cr-bash-helpers.sh b/tools/cr/cr-bash-helpers.sh
index 9e57b419ff2ef535a3b749242a05d3ad0b0b7e3a..e7e7593df2fb4b53496d3a774c270253257f2553 100755
--- a/tools/cr/cr-bash-helpers.sh
+++ b/tools/cr/cr-bash-helpers.sh
@@ -14,12 +14,12 @@ if [[ -n "$BASH_VERSION" && "${BASH_SOURCE:-$0}" == "$0" ]]; then
exit 1
fi
-READLINK_e="readlink -e"
+READLINK_e=("readlink" "-e")
if [[ -x `which greadlink` ]]; then
- READLINK_e="greadlink -e"
+ READLINK_e=("greadlink" "-e")
fi
-cr_base_dir=$(dirname $($READLINK_e "${BASH_SOURCE:-$0}"))
+cr_base_dir=$(dirname $(${READLINK_e[@]} "${BASH_SOURCE:-$0}"))
Miguel Garcia 2014/04/02 16:06:15 I assume you have tested this on bash too?
cr_main="${cr_base_dir}/main.py"
cr_exec=("PYTHONDONTWRITEBYTECODE=1" "python" "${cr_main}")
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698