Mercurial > repo
comparison paste/paste.5734 @ 854:6568d45e3294
<Sgeo__> paste bin/paste
author | HackBot |
---|---|
date | Thu, 15 Nov 2012 08:30:22 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
853:8ceb191fb559 | 854:6568d45e3294 |
---|---|
1 #!/bin/bash | |
2 if [ ! "$1" ] | |
3 then | |
4 PASTE=- | |
5 else | |
6 PASTE="$1" | |
7 fi | |
8 | |
9 PASTENUM="$RANDOM" | |
10 | |
11 mkdir -p $HACKENV/paste | |
12 | |
13 echo 'http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/paste/paste.'"$PASTENUM" | |
14 cat "$PASTE" > $HACKENV/paste/paste."$PASTENUM" |