-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 17/01/2020 14.40, Patrick Shanahan wrote:
* Carlos E. R. <> [01-17-20 05:17]:
maybe you should try the Tumbleweed script, I just did and it worked fine. (/usr/bin/susepaste)
for your convenience: http://wahoo.no-ip.org/~paka/susepaste
and it is different than that provided by David.
which is only a "repair" of the one supplied on Leap. Yes, the TW version does work, thanks. Comparison between the original script in Leap and the one in TW: cer@Telcontar:~/tmp> diff ~/fusermount/usr/bin/susepaste susepaste_tw 57a58,60
"x-s" ) SCHEMA="$2" shift 2 ;;
62c65 < echo " susepaste [-f format] [-n nick] [-t title] [-e expire] [file]" - ---
echo " susepaste [-f format] [-n nick] [-t title] [-e expire] [-s schema] [file]"
79c82,86 < if [ -r "$1" ]; then - ---
if [ "$1" ]; then if [ \! -r "$1" ]; then echo "Can't read $1" exit 2 fi 108c115,116 <
# Should SSL be used as schema [ "$SCHEMA" ] || SCHEMA=https 116c124 < http://susepaste.org 2>&1 | sed -n 's|<\ Location:\ ||p' `"
${SCHEMA}://susepaste.org 2>&1 | sed -n 's|<\ [lL]ocation:\ ||p' `"
120,121c128,129 < if expr "$URL" : "^http://susepaste.org/[0-9a-f]\+" > /dev/null; then < ID="`echo "$URL" | sed 's|^http://susepaste.org/\([0-9a-f]\+\)[^0-9a-f]*|\1|'`" - ---
if expr "$URL" : "^${SCHEMA}://susepaste.org/[0-9a-f]\+" > /dev/null; then ID="`echo "$URL" | sed 's|^'"${SCHEMA}"'://susepaste.org/\([0-9a-f]\+\)[^0-9a-f]*|\1|'`" 123,124c131,132 < echo " http://susepaste.org/$ID" < echo " http://paste.opensuse.org/$ID"
echo " ${SCHEMA}://susepaste.org/$ID" echo " ${SCHEMA}://paste.opensuse.org/$ID" 126c134 < echo "http://susepaste.org/$ID" | xclip -selection XA_CLIPBOARD
echo "${SCHEMA}://susepaste.org/$ID" | xclip -selection XA_CLIPBOARD
cer@Telcontar:~/tmp> The copy to clipboard doesn't work in any, though. - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXiIVkQAKCRC1MxgcbY1H 1eSwAJ9Osv0oyb6bVZogpxjuj8aZVIpf1wCgkgp2AyugjcX1db762HHqitP0rPE= =W5NU -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org