From 74a2f28c13ab24ddd1854a0739b8379bb8e090f4 Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Thu, 18 Aug 2011 14:40:56 -0500 Subject: [PATCH] bullshit: add support for arbitrary database files --- rc/bin/bullshit | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rc/bin/bullshit b/rc/bin/bullshit index e55f394bb..a84940b5d 100755 --- a/rc/bin/bullshit +++ b/rc/bin/bullshit @@ -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