Mercurial > repo
changeset 854:6568d45e3294
<Sgeo__> paste bin/paste
author | HackBot |
---|---|
date | Thu, 15 Nov 2012 08:30:22 +0000 |
parents | 8ceb191fb559 |
children | d77a7b7e66bd |
files | paste/paste.5734 |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/paste/paste.5734 Thu Nov 15 08:30:22 2012 +0000 @@ -0,0 +1,14 @@ +#!/bin/bash +if [ ! "$1" ] +then + PASTE=- +else + PASTE="$1" +fi + +PASTENUM="$RANDOM" + +mkdir -p $HACKENV/paste + +echo 'http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/paste/paste.'"$PASTENUM" +cat "$PASTE" > $HACKENV/paste/paste."$PASTENUM" \ No newline at end of file