Browse Source

bin: use abs paths for catt script

master
sentriz 9 months ago
parent
commit
e3a3887d90
No known key found for this signature in database GPG Key ID: 9A8DAE1CA907B862
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      conf_phone/bin/termux-url-opener

+ 3
- 3
conf_phone/bin/termux-url-opener View File

@@ -1,9 +1,9 @@
if [[ "$#" -ne 1 ]]; then
if [ "$#" -ne 1 ]; then
echo "please provide a url" >&2
exit 1
fi

case "$1" in
*://youtube.com/*|*://youtu.be/*) catt add "$1" ;;
*) catt cast "$1" ;;
*youtube.com/*|*youtu.be/*) /data/data/com.termux/files/home/.local/bin/catt add "$1" ;;
*) /data/data/com.termux/files/home/.local/bin/catt cast "$1" ;;
esac

Loading…
Cancel
Save