diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-23 14:12:17 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-23 14:12:17 +0200 |
commit | 8986d060f2f308ba768758ef9c3077f00f3d6b2a (patch) | |
tree | 1dcbbd479f498693de0180ecae85bf532d74a8d1 /bin/guiscripts/sturl | |
parent | d466dcc80e77463fa035fc85ced0c253e38cbac2 (diff) |
checkpoint
Diffstat (limited to 'bin/guiscripts/sturl')
-rwxr-xr-x | bin/guiscripts/sturl | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/bin/guiscripts/sturl b/bin/guiscripts/sturl deleted file mode 100755 index 2712d92..0000000 --- a/bin/guiscripts/sturl +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -regex='(((file|https?|gopher|gemini|ftps?|git)://|www\.)[a-zA-Z0-9.]*[:;!a-zA-Z0-9./+@$&%?$\#=_~-]*)|(magnet:\?xt=urn:btih:[a-zA-Z0-9]*)' -url="$(tr -d '\n' | grep -Eo "$regex" | commander -xcl)" -[ -z "$url" ] && exit 1 - -case $1 in - 'c') printf '%s' "$url" | clipp ;; - 'o') lh "$url" ;; - *) echo "no option" ;; -esac |