Mercurial > repo
annotate bin/paste @ 2016:16674c4f830c
<oerjan> addquote <Bike> if you say "java" three times to a dark mirror does steele come out and lecture you about operator overloading
author | HackBot |
---|---|
date | Wed, 06 Feb 2013 20:36:14 +0000 |
parents | 629eda98330d |
children | 1c1429d055bc |
rev | line source |
---|---|
0 | 1 #!/bin/bash |
2 if [ ! "$1" ] | |
3 then | |
1786 | 4 PASTENUM="$RANDOM" |
5 | |
6 mkdir -p $HACKENV/paste | |
7 | |
8 url paste/paste."$PASTENUM" | |
9 cat > $HACKENV/paste/paste."$PASTENUM" | |
1789
629eda98330d
<oerjan> sed -i -e \'s/else/else # Save making a file when it already exists./\' bin/paste
HackBot
parents:
1786
diff
changeset
|
10 else # Save making a file when it already exists. |
1786 | 11 url "$1" |
0 | 12 fi |
13 |