Mercurial > repo
changeset 4592:2c4e7296fa00
<oerjan> fetch http://oerjan.nvg.org/paste
author | HackBot |
---|---|
date | Sun, 20 Apr 2014 00:44:36 +0000 |
parents | abd8e1d1ae63 |
children | 1f40eeeac13c |
files | paste.1 |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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