05b617066ba5a37ef0c533385efd6e232a387b8f

Author
Arvindraj <arvindultimate7352@gmail.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

transfer: add deprecation notice (#7372)

Fixes #7371

Signed-off-by: Arvindraj <arvindultimate7352@gmail.com>
Co-authored-by: Stephen Ward <stephen@whilenotzero.com>

Diff

 1diff --git a/plugins/transfer/README.md b/plugins/transfer/README.md
 2index 5fa0644451e06857c677adfb178e3c841f4a51e2..37c7ca2f7c41b4e2494f831e8a0afde4c742ad5e 100644
 3--- a/plugins/transfer/README.md
 4+++ b/plugins/transfer/README.md
 5@@ -1,5 +1,9 @@
 6 # `transfer` plugin
 7 
 8+**NOTICE: The `transfer` plugin is deprecated and will be removed soon, since the [transfer.sh](https://transfer.sh) service will be shutdown on 30th November 30th, 2018. Please move your files to an alternative file sharing service provider.**
 9+
10+----
11+
12 [`transfer.sh`](https://transfer.sh) is an easy to use file sharing service from the command line
13 
14 ## Usage
15diff --git a/plugins/transfer/transfer.plugin.zsh b/plugins/transfer/transfer.plugin.zsh
16index 7a7cd85ec1847af2354444de753f41e039227536..8fd09ef043d62cdb329cde3bd294dc86c62e215d 100644
17--- a/plugins/transfer/transfer.plugin.zsh
18+++ b/plugins/transfer/transfer.plugin.zsh
19@@ -12,6 +12,14 @@
20 #   Modified to use tar command instead of zip
21 #
22 
23+echo -ne '\e[1;33m'
24+cat <<-EOF
25+        [oh-my-zsh] WARNING: The 'transfer' plugin is deprecated and will be removed after
26+        [oh-my-zsh] transfer.sh shuts down on November 30th. We suggest you stop using the
27+        [oh-my-zsh] plugin and find an alternative file hosting service.
28+EOF
29+echo -ne '\e[0m'
30+
31 curl --version 2>&1 > /dev/null
32 if [ $? -ne 0 ]; then
33   echo "Could not find curl."
34@@ -64,4 +72,4 @@ transfer() {
35 
36     # cleanup
37     rm -f $tmpfile
38-}
39+}