Mercurial > repo
view paste.2 @ 4595:12187f01893f
<oerjan> chmod +x paste.2
author | HackBot |
---|---|
date | Sun, 20 Apr 2014 00:45:55 +0000 |
parents | aca3e93dfaf3 |
children |
line wrap: on
line source
#!/bin/bash if [ "$1" ] && url "$1" 2>/dev/null # Save making a file when it already exists. then true else PASTENUM="$RANDOM" mkdir -p $HACKENV/paste url paste/paste."$PASTENUM" cat -- "${1--}" > $HACKENV/paste/paste."$PASTENUM" fi