From 951ec3bf8cf4b42a0e2e11c6f5cf976b109d6535 Mon Sep 17 00:00:00 2001 From: Jon Reid Date: Sat, 21 Mar 2015 14:09:09 -0700 Subject: [PATCH] run_code_coverage_post.sh: Lean toward Google shell style guide --- run_code_coverage_post.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/run_code_coverage_post.sh b/run_code_coverage_post.sh index e65eba5..2e1301a 100644 --- a/run_code_coverage_post.sh +++ b/run_code_coverage_post.sh @@ -11,7 +11,8 @@ tell application "Finder" set myReply to button returned of (display dialog dialogText buttons {cancelText, okText} cancel button cancelText default button okText) end tell EOT` -if [[ $button = "OK" ]]; then - DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - "${DIR}/getcov" --show + +if [[ "${button}" = "OK" ]]; then + scripts="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + "${scripts}/getcov" --show fi