#!/bin/sh

# SPDX-License-Identifier: GPL-2.0-or-later
# 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
