logo

sshpaste

Simple paste script to a server having SSH+HTTP daemons
commit: c1bc620e18eb804ee71fe4328d113b9c9e9a1bad
parent: 94d2ecb6304907c791c2b1ed1c24de174736b830
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 29 Apr 2018 10:51:58 +0200

sshpaste: Put all the error to stderr

Diffstat:

Msshpaste4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sshpaste b/sshpaste @@ -8,8 +8,8 @@ target_www="https://cloudsdale.hacktivis.me/pastes/${datetime}" die() { if [[ -z "$*" ]] - then echo "${*}, exiting…" - else echo "Failed, exiting…" + then echo "${*}, exiting…" >&2 + else echo "Failed, exiting…" >&2 fi exit