view paste/paste.12606 @ 11260:c094d07815e0

<oerjan> le/rn this//This is something people on the channel like to talk about. We\'re often unsure what this is, though.
author HackBot
date Sat, 09 Dec 2017 11:45:42 +0000
parents 1bca98188e7f
children
line wrap: on
line source

#!/bin/bash
if [ ! "$1" ]
then
    PASTE=-
else
    PASTE="$1"
fi

PASTENUM="$RANDOM"

mkdir -p $HACKENV/paste

url paste/paste."$PASTENUM"
cat "$PASTE" > $HACKENV/paste/paste."$PASTENUM"