pastebinit: use LE paste service

This commit is contained in:
CvH
2023-12-10 18:18:26 +01:00
parent e521363043
commit d09d7c51b2
2 changed files with 5 additions and 5 deletions

View File

@@ -4,8 +4,6 @@
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
if [ -n "${PASTEUSR}" -a "${PASTEPWD}" ]; then
cat "$@" | curl -F 'f:1=<-' ${PASTEUSR}:${PASTEPWD}@ix.io
else
cat "$@" | curl -F 'f:1=<-' http://ix.io
fi
token=$(echo "@DISTRONAME@-@OS_VERSION@" | sha256sum | cut -d ' ' -f 1)
cat "$@" | curl https://paste.libreelec.tv -F 'file=@-' -H "Authorization: Bearer ${token}"