view bin/paste @ 4572:6eb8f50f2a37

<oerjan> echo >wisdom/phantom_hoover \'Phantom Michael Hoover is a true Scotsman, hatheist, and completely out of the loop.\'
author HackBot
date Tue, 15 Apr 2014 23:32:50 +0000
parents 7f957c1f4661
children 1bc67ded06c4
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