# HG changeset patch # User HackBot # Date 1397954676 0 # Node ID 2c4e7296fa00cc77bdb896f96933834550a80d15 # Parent abd8e1d1ae638a098a16b2e9248615f2113f729a fetch http://oerjan.nvg.org/paste diff -r abd8e1d1ae63 -r 2c4e7296fa00 paste.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/paste.1 Sun Apr 20 00:44:36 2014 +0000 @@ -0,0 +1,11 @@ +#!/bin/bash +if [ "$1" ] && url "$1" 2>/dev/null # Save making a file when it already exists. +then +else + PASTENUM="$RANDOM" + + mkdir -p $HACKENV/paste + + url paste/paste."$PASTENUM" + cat -- "${1--}" > $HACKENV/paste/paste."$PASTENUM" +fi