--- wgetpaste-2.28/wgetpaste 2016-07-18 19:57:28.000000000 +0000 +++ wgetpaste-2.29/wgetpaste 2019-06-12 20:56:03.000000000 +0000 @@ -2,9 +2,8 @@ # A Script that automates pasting to a number of pastebin services # relying only on bash, sed, coreutils (mktemp/sort/tr/wc/whoami/tee) and wget # Copyright (c) 2007-2016 Bo Ørsted Andresen -# Distributed in the public domain. Do with it whatever you want. -VERSION="2.28" +VERSION="2.29" # don't inherit LANGUAGE from the env unset LANGUAGE @@ -14,7 +13,7 @@ N=$'\n' ### services -SERVICES="codepad bpaste dpaste gists poundpython" +SERVICES="codepad bpaste dpaste gists" # bpaste ENGINE_bpaste=pinnwand URL_bpaste="https://bpaste.net/" @@ -33,9 +32,6 @@ # gists ENGINE_gists=gists URL_gists="https://api.github.com/gists" -# poundpython -ENGINE_poundpython=lodgeit -URL_poundpython="https://paste.pound-python.org/" # tinyurl ENGINE_tinyurl=tinyurl URL_tinyurl="http://tinyurl.com/ api-create.php" @@ -55,7 +51,7 @@ EXPIRATIONS_dpaste="30%days 30%days%after%last%view" EXPIRATION_VALUES_dpaste="off on" POST_dpaste="submit=Paste+it poster title language hold % content" -REGEX_RAW_dpaste='s|^\(http://[^/]*/\)[^0-9]*\([0-9]*/\)$|\1\2plain/|' +REGEX_RAW_dpaste='s|^\(http://[^/]*/\)\([[:alnum:]]*\)$|\1\2.txt|' # gists LANGUAGES_gists="ActionScript Ada Apex AppleScript Arc Arduino ASP Assembly Augeas AutoHotkey Batchfile Befunge BlitzMax Boo Brainfuck Bro C C# C++ @@ -722,7 +718,7 @@ load_configs [[ $SERVICESET ]] && verifyservice "$SERVICESET" && SERVICE=$(escape "$SERVICESET") DEFAULT_NICK=${DEFAULT_NICK:-$(whoami)} || die "whoami failed" -DEFAULT_SERVICE=${DEFAULT_SERVICE:-poundpython} +DEFAULT_SERVICE=${DEFAULT_SERVICE:-dpaste} DEFAULT_LANGUAGE=${DEFAULT_LANGUAGE:-Plain Text} DEFAULT_EXPIRATION=${DEFAULT_EXPIRATION:-1 month} SERVICE=${SERVICE:-${DEFAULT_SERVICE}}