2021-03-15 08:37:03 +00:00
|
|
|
diff --git a/ytfzf b/ytfzf
|
2021-04-05 15:23:46 +00:00
|
|
|
index 42f41c0..f75f5cb 100755
|
2021-03-15 08:37:03 +00:00
|
|
|
--- a/ytfzf
|
|
|
|
+++ b/ytfzf
|
2021-04-05 15:23:46 +00:00
|
|
|
@@ -892,23 +892,8 @@ send_notify () {
|
2021-03-15 08:37:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
update_ytfzf () {
|
2021-04-05 15:23:46 +00:00
|
|
|
- branch="$1"
|
|
|
|
- updatefile="/tmp/ytfzf-update"
|
2021-03-15 08:37:03 +00:00
|
|
|
- curl -L "https://raw.githubusercontent.com/pystardust/ytfzf/$branch/ytfzf" -o "$updatefile"
|
|
|
|
-
|
|
|
|
- if sed -n '1p' < "$updatefile" | grep -q '#!/bin/sh' ; then
|
|
|
|
- chmod 755 "$updatefile"
|
|
|
|
- if [ "$(uname)" = "Darwin" ]; then
|
|
|
|
- sudo cp "$updatefile" "/usr/local/bin/ytfzf"
|
|
|
|
- else
|
|
|
|
- sudo cp "$updatefile" "/usr/bin/ytfzf"
|
|
|
|
- fi
|
|
|
|
- else
|
|
|
|
- printf "%bFailed to update ytfzf. Try again later.%b" "$c_red" "$c_reset"
|
|
|
|
- fi
|
|
|
|
-
|
|
|
|
- rm "$updatefile"
|
|
|
|
- exit
|
|
|
|
+ printf "%bUpdates have to be installed through Nix.%b\n" "$c_red" "$c_reset"
|
|
|
|
+ exit 1
|
|
|
|
}
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
scrape_subscriptions () {
|