Mercurial > repo
view bin/paste @ 1348:ec6018972dc0
<GreyKnight> chmod a+x gktemp/target
author | HackBot |
---|---|
date | Thu, 10 Jan 2013 13:29:55 +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"