view paste/paste.30457 @ 11256:25af74e94d40

<oerjan> learn This is something shachaf likes to talk about. We\'re often unsure what this is, though.
author HackBot
date Sat, 09 Dec 2017 11:43:01 +0000
parents 42713ff67415
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"