bullshit: add support for arbitrary database files
This commit is contained in:
parent
62d34a466e
commit
74a2f28c13
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,8 @@
|
|||
#!/bin/rc
|
||||
if(~ $#1 0)
|
||||
file=/lib/bullshit
|
||||
if not
|
||||
file=$1
|
||||
awk '
|
||||
function min(a, b){
|
||||
if(a > b)
|
||||
|
@ -48,4 +52,4 @@ END {
|
|||
printf "%s ", end[int(rand() * nend)]
|
||||
print ""
|
||||
}
|
||||
' /lib/bullshit
|
||||
' $file
|
||||
|
|
Loading…
Reference in a new issue