From 2a47935d87c2e5c8d15afed8b44c51023ab49029 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 7 Nov 2016 05:09:03 +0300 Subject: bugfix * Add missing '--'s. --- fix_nt_symbol_path.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fix_nt_symbol_path.sh') diff --git a/fix_nt_symbol_path.sh b/fix_nt_symbol_path.sh index 9236ae1..61e2934 100755 --- a/fix_nt_symbol_path.sh +++ b/fix_nt_symbol_path.sh @@ -18,7 +18,7 @@ set -o nounset set -o pipefail readonly script_argv0="${BASH_SOURCE[0]}" -readonly script_dir="$( cd "$( dirname "$script_argv0" )" && pwd )" +readonly script_dir="$( cd "$( dirname -- "$script_argv0" )" && pwd )" dump() { local prefix="${FUNCNAME[0]}" @@ -56,7 +56,7 @@ path_contains() { local -a env_paths local env_path - IFS="$path_separator" read -ra env_paths <<< "$env_value" + IFS="$path_separator" read -a env_paths -r <<< "$env_value" for env_path in ${env_paths[@]+"${env_paths[@]}"}; do if [ "$env_path" == "$path_to_add" ]; then @@ -137,7 +137,7 @@ update_tmp_dir() { return 1 fi - tmp_dir="$( cygpath --windows --absolute "$1" )" + tmp_dir="$( cygpath --windows --absolute -- "$1" )" } update_tmp_dir "$script_dir" -- cgit v1.2.3