comparison bin/paste @ 5643:56dcce63901b

<tswett> revert
author HackBot
date Sun, 21 Jun 2015 02:47:59 +0000
parents
children 916b38c83c3b
comparison
equal deleted inserted replaced
5642:987c834ab84d 5643:56dcce63901b
1 #!/bin/bash
2 if [ "$1" ] && url "$1" 2>/dev/null # Save making a file when it already exists.
3 then
4 true
5 else
6 PASTENUM="$RANDOM"
7
8 mkdir -p $HACKENV/paste
9
10 url paste/paste."$PASTENUM"
11 cat -- "${1--}" > $HACKENV/paste/paste."$PASTENUM"
12 fi