diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-05 14:30:21 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-05 14:30:21 +0200 |
commit | e4c833e535dcda3dd3145e06f2d7f187e2197efb (patch) | |
tree | 10be7ce47fd56cf3f8e694efe266c5c6e67f4b0c /bin/guiscripts/sturl | |
parent | a86e7cfce4bc2167383a071856f5deba77f30a5b (diff) | |
parent | c41328bec94c2d3fe58b6cc0db7336702b054cb7 (diff) |
Merge remote-tracking branch 'refs/remotes/origin/main'
Diffstat (limited to 'bin/guiscripts/sturl')
-rwxr-xr-x | bin/guiscripts/sturl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/guiscripts/sturl b/bin/guiscripts/sturl index bf1fb02..c738c8e 100755 --- a/bin/guiscripts/sturl +++ b/bin/guiscripts/sturl @@ -1,7 +1,7 @@ #!/bin/sh regex='(((https?|gopher|gemini|ftps?|git)://|www\.)[a-zA-Z0-9.]*[:;a-zA-Z0-9./+@$&%?$\#=_~-]*)|(magnet:\?xt=urn:btih:[a-zA-Z0-9]*)' -url="$(cat | tr -d '\n' | grep -Eo "$regex" | dmenu -x -c -g 1 -l 10)" +url="$(tr -d '\n' | grep -Eo "$regex" | dmenu -x -c -g 1 -l 10)" [ -z "$url" ] && exit 1 case $1 in |