Mercurial > repo
annotate bin/paste @ 2018:84a34a85e4c8
<oerjan> addquote <Sgeo> This position is asking for "- Extensive experience with API" <Jafet> You\'re just not qualified, kid.
author | HackBot |
---|---|
date | Wed, 06 Feb 2013 23:05:06 +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 |