view bin/paste @ 3911:8c112ffd5765

<kmc> addquote zzo38 [~zzo38@24-207-49-17.eastlink.ca] has quit [Quit: I need the stats for the small leech, not the big one. So, if you write it on here while I am gone then when I return I will check.]
author HackBot
date Tue, 15 Oct 2013 22:19:50 +0000
parents 7914d7e0b500
children 03afb1619ef2
line wrap: on
line source

#!/bin/bash
if [ ! "$1" ]
then
    PASTENUM="$RANDOM"

    mkdir -p $HACKENV/paste

    url paste/paste."$PASTENUM"
    cat > $HACKENV/paste/paste."$PASTENUM"
else # Save making a file when it already exists.
    url "$1"
fi