aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fix_nt_symbol_path.sh
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-11-07 05:09:03 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-11-07 05:09:03 +0300
commit2a47935d87c2e5c8d15afed8b44c51023ab49029 (patch)
treeb034fe7bf805cc1e57bc26215a8e9118cb02f9e8 /fix_nt_symbol_path.sh
parent+x fix_nt_symbol_path.sh (diff)
downloadwindows-tmp-2a47935d87c2e5c8d15afed8b44c51023ab49029.tar.gz
windows-tmp-2a47935d87c2e5c8d15afed8b44c51023ab49029.zip
bugfix
* Add missing '--'s.
Diffstat (limited to 'fix_nt_symbol_path.sh')
-rwxr-xr-xfix_nt_symbol_path.sh6
1 files changed, 3 insertions, 3 deletions
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"