Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Commit 4ee2c0c

Browse files
Merge pull request #301 from JaZo/patch-1
fix: [#268] do not validate URL when skip flag is used
2 parents 37da694 + 060b047 commit 4ee2c0c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/wslview.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,12 @@ if [[ "$lname" != "" ]]; then
9898
properfile_full_path="$(readlink -f "${lname}")"
9999
fi
100100
debug_echo "properfile_full_path: $properfile_full_path"
101-
debug_echo "validating whether if it is a link"
102-
is_valid_url=$(url_validator "$lname")
103101
if [ "$skip_validation_check" -eq 0 ]; then
104102
debug_echo "Skipping validation check"
105103
is_valid_url=0
104+
else
105+
debug_echo "Validating whether if it is a link"
106+
is_valid_url=$(url_validator "$lname")
106107
fi
107108
if [[ "$is_valid_url" -eq 0 ]] && [ -z "$properfile_full_path" ]; then
108109
debug_echo "It is a link"

0 commit comments

Comments
 (0)