changeset 590:edc576a78ad1

<kallisti> run paste "`which paste`"
author HackBot
date Wed, 18 Jul 2012 02:11:42 +0000
parents 267a69614deb
children 00b3f3afe3ed
files paste/paste.30276
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.30276	Wed Jul 18 02:11:42 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