Skip to content

Commit

Permalink
bmap-writer-stream.sh: allow username/passwd usage in the url
Browse files Browse the repository at this point in the history
  • Loading branch information
embetrix committed Jan 30, 2025
1 parent 7bfb0ca commit d89d2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bmap-writer-stream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

export PATH=$PWD:$PATH

IMAGE_URL=$(echo "$1" | grep -P '^(https?|s?ftp)://([\da-zA-Z\.-]+)(:\d+)?(/[^\s]*)?$' > /dev/null && echo "$1" || echo "")
IMAGE_URL=$(echo "$1" | grep -P '^(https?|s?ftp)://([\w\-]+(:[\w\-]+)?@)?([\da-zA-Z\.-]+)(:\d+)?(/[^\s]*)?$' > /dev/null && echo "$1" || echo "")
DEVICE=$2

WGET=$(which wget)
Expand Down

0 comments on commit d89d2fd

Please sign in to comment.