diff options
| author | LM-LCL <hello@exaltedelite.club> | 2023-08-31 01:01:57 +0200 |
|---|---|---|
| committer | LM-LCL <hello@exaltedelite.club> | 2023-09-01 16:14:09 +0200 |
| commit | 9aa290b9667832c8ae41ed8bc36e57da7a74b9c2 (patch) | |
| tree | 532a98d4561a85952543c609e4ff7c5c45601b5a /util/verify | |
| parent | fe92c7ac827b18673e1fa89dacfca370dcfd313d (diff) | |
complete script revamp
Diffstat (limited to 'util/verify')
| -rwxr-xr-x | util/verify/cbd-core | 25 | ||||
| -rwxr-xr-x | util/verify/cbd-https | 8 | ||||
| -rwxr-xr-x | util/verify/cbd-magnet | 8 |
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")" -} - |
