Mercurial > repo
view bin/paste @ 1223:afc9dad38071
<elliott> revert
author | HackBot |
---|---|
date | Wed, 02 Jan 2013 01:03:17 +0000 |
parents | e037173e0012 |
children | fa63d5796937 |
line wrap: on
line source
#!/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"