summaryrefslogtreecommitdiff
path: root/util/verify
diff options
context:
space:
mode:
Diffstat (limited to 'util/verify')
-rwxr-xr-xutil/verify/cbd-core25
-rwxr-xr-xutil/verify/cbd-https8
-rwxr-xr-xutil/verify/cbd-magnet8
3 files changed, 0 insertions, 41 deletions
diff --git a/util/verify/cbd-core b/util/verify/cbd-core
deleted file mode 100755
index 99dcbde..0000000
--- a/util/verify/cbd-core
+++ /dev/null
@@ -1,25 +0,0 @@
-#! /bin/bash
-
-source ./util/notify
-source ./util/hpath
-
-get_cbd() {
- echo "$(xclip -o)"
-}
-
-end_script() {
- notify "$1"
- kill -15 $$
-}
-
-url_pattern_match() {
- [[ "$1" != "$2"* ]] && end_script "$3" \
- || echo "$1" >> "$HPATH"
-}
-
-url_pattern_match_cbd() {
- [ -z "$3" ] && cbd="$(get_cbd)" || cbd="$3"
- url_pattern_match "$cbd" "$1" "$2"
- echo "$cbd"
-}
-
diff --git a/util/verify/cbd-https b/util/verify/cbd-https
deleted file mode 100755
index 4eefc8b..0000000
--- a/util/verify/cbd-https
+++ /dev/null
@@ -1,8 +0,0 @@
-#! /bin/bash
-
-source ./util/verify/cbd-core
-
-is_https_url_cbd() {
- echo "$(url_pattern_match_cbd 'https://' 'Invalid URL' "$1")"
-}
-
diff --git a/util/verify/cbd-magnet b/util/verify/cbd-magnet
deleted file mode 100755
index 837bf87..0000000
--- a/util/verify/cbd-magnet
+++ /dev/null
@@ -1,8 +0,0 @@
-#! /bin/bash
-
-source ./util/verify/cbd-core
-
-is_magnet_url_cbd() {
- echo "$(url_pattern_match_cbd 'magnet:?xt=urn:btih:' 'Invalid Magnet URL' "$1")"
-}
-