Skip to content

Commit 140d0bb

Browse files
committed
end-of-options
1 parent 74ae52c commit 140d0bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

usr/bin/dist-installer-cli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3759,7 +3759,7 @@ check_hash() {
37593759
local shafile dir
37603760

37613761
shafile="${1}"
3762-
dir="$(dirname "${shafile}")"
3762+
dir="$(dirname -- "${shafile}")"
37633763
log info "Checking SHA512 checksum: '${shafile}"
37643764
## $checkhash needs to be executed on the same folder as the compared file.
37653765
log info "Changing to directory: '${dir}'"
@@ -4339,7 +4339,7 @@ parse_opt() {
43394339
fi
43404340

43414341
## Test if parent directory exists.
4342-
directory_prefix_parent="$(dirname "${directory_prefix}")"
4342+
directory_prefix_parent="$(dirname -- "${directory_prefix}")"
43434343
if ! test_file -d "${directory_prefix_parent}"; then
43444344
die 1 "Directory doesn't exist: '${directory_prefix_parent}'"
43454345
fi

0 commit comments

Comments
 (0)