From 05b617066ba5a37ef0c533385efd6e232a387b8f Mon Sep 17 00:00:00 2001 From: Arvindraj Date: Fri, 2 Nov 2018 22:10:13 +0530 Subject: transfer: add deprecation notice (#7372) Fixes #7371 Signed-off-by: Arvindraj Co-authored-by: Stephen Ward --- plugins/transfer/transfer.plugin.zsh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'plugins/transfer/transfer.plugin.zsh') diff --git a/plugins/transfer/transfer.plugin.zsh b/plugins/transfer/transfer.plugin.zsh index 7a7cd85ec..8fd09ef04 100644 --- a/plugins/transfer/transfer.plugin.zsh +++ b/plugins/transfer/transfer.plugin.zsh @@ -12,6 +12,14 @@ # Modified to use tar command instead of zip # +echo -ne '\e[1;33m' +cat <<-EOF + [oh-my-zsh] WARNING: The 'transfer' plugin is deprecated and will be removed after + [oh-my-zsh] transfer.sh shuts down on November 30th. We suggest you stop using the + [oh-my-zsh] plugin and find an alternative file hosting service. +EOF +echo -ne '\e[0m' + curl --version 2>&1 > /dev/null if [ $? -ne 0 ]; then echo "Could not find curl." @@ -64,4 +72,4 @@ transfer() { # cleanup rm -f $tmpfile -} \ No newline at end of file +} -- cgit v1.2.3-70-g09d2 From 3d8f2bda599c8c6d160dc448e5ab28aaf2d5e90d Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Tue, 13 Nov 2018 10:54:33 +0100 Subject: Revert "transfer: add deprecation notice (#7372)" (#7402) This reverts commit 05b617066ba5a37ef0c533385efd6e232a387b8f. --- plugins/transfer/README.md | 4 ---- plugins/transfer/transfer.plugin.zsh | 10 +--------- 2 files changed, 1 insertion(+), 13 deletions(-) (limited to 'plugins/transfer/transfer.plugin.zsh') diff --git a/plugins/transfer/README.md b/plugins/transfer/README.md index 37c7ca2f7..5fa064445 100644 --- a/plugins/transfer/README.md +++ b/plugins/transfer/README.md @@ -1,9 +1,5 @@ # `transfer` plugin -**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.** - ----- - [`transfer.sh`](https://transfer.sh) is an easy to use file sharing service from the command line ## Usage diff --git a/plugins/transfer/transfer.plugin.zsh b/plugins/transfer/transfer.plugin.zsh index 8fd09ef04..7a7cd85ec 100644 --- a/plugins/transfer/transfer.plugin.zsh +++ b/plugins/transfer/transfer.plugin.zsh @@ -12,14 +12,6 @@ # Modified to use tar command instead of zip # -echo -ne '\e[1;33m' -cat <<-EOF - [oh-my-zsh] WARNING: The 'transfer' plugin is deprecated and will be removed after - [oh-my-zsh] transfer.sh shuts down on November 30th. We suggest you stop using the - [oh-my-zsh] plugin and find an alternative file hosting service. -EOF -echo -ne '\e[0m' - curl --version 2>&1 > /dev/null if [ $? -ne 0 ]; then echo "Could not find curl." @@ -72,4 +64,4 @@ transfer() { # cleanup rm -f $tmpfile -} +} \ No newline at end of file -- cgit v1.2.3-70-g09d2 From 83ce8d05dfefacf1d4a7fdc957f38b3bd6cba6b4 Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Wed, 30 Jan 2019 16:35:16 +0100 Subject: transfer: add newline after showing the link Fixes #7562 --- plugins/transfer/transfer.plugin.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/transfer/transfer.plugin.zsh') diff --git a/plugins/transfer/transfer.plugin.zsh b/plugins/transfer/transfer.plugin.zsh index 7a7cd85ec..db744b0cd 100644 --- a/plugins/transfer/transfer.plugin.zsh +++ b/plugins/transfer/transfer.plugin.zsh @@ -61,7 +61,9 @@ transfer() { # cat output link cat $tmpfile + # add newline + echo # cleanup rm -f $tmpfile -} \ No newline at end of file +} -- cgit v1.2.3-70-g09d2