From 36785599ecfd1a617b2ab6eaf55c6a7afd9ecec4 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 12 Oct 2016 19:48:59 +0300 Subject: code style --- fix_nt_symbol_path.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fix_nt_symbol_path.sh b/fix_nt_symbol_path.sh index f70b249..71cf21e 100644 --- a/fix_nt_symbol_path.sh +++ b/fix_nt_symbol_path.sh @@ -87,6 +87,7 @@ path_append() { prompt_to_continue() { local prefix="${FUNCNAME[0]}" + if [ "${#FUNCNAME[@]}" -gt 1 ]; then prefix="${FUNCNAME[1]}" fi @@ -108,7 +109,7 @@ ensure_reg_available() { if command -v reg.exe > /dev/null; then return 0 else - dump "reg.exe could not be found" >&2 + dump 'couldn'"'"'t find reg.exe' >&2 return 1 fi } @@ -213,7 +214,7 @@ fix_nt_symbol_path() { local srv_str="SRV*$symbols_dir*http://msdl.microsoft.com/download/symbols" local vscache_dir="$tmp_dir\\vscache" - dump "directories:" + dump 'directories:' dump " custom PDB files: $pdbs_dir" dump " symbol store: $symbols_dir" dump " Visual Studio project cache files: $vscache_dir" -- cgit v1.2.3