freebsd-ports/sysutils/bashburn/files/patch-BashBurn.sh
Marcelo Araujo 6704901561 - Update to 2.1.2.
PR:		ports/119757
Submitted by:	Felippe de Meirelles Motta <lippemail@gmail.com>
Reworked by:	Martin Tournoil <carpetsmoker@xs4all.nl> (maintainer)
Approved by:	stas (mentor, implicit)
2008-01-20 04:43:41 +00:00

15 lines
553 B
Bash

--- BashBurn.sh.orig 2007-11-09 19:02:46.000000000 +0100
+++ BashBurn.sh 2008-01-17 23:17:18.000000000 +0100
@@ -31,7 +31,11 @@
# This is run at first
init_bashburn()
{
- if [[ -r "${BBCONFFILE}" ]]; then # If /etc/bashburnrc exists, read in the vars.
+ if [[ ! -f "${BBCONFFILE}" ]]; then
+ cp ${BBCONFFILE}.sample ${BBCONFFILE}
+ fi
+
+ if [[ -r "${BBCONFFILE}" ]]; then
# Next line a tip from paddor
export BBROOTDIR="$( sed -n 's/^[[:blank:]]*BBROOTDIR:[[:blank:]]*\(.*\)/\1/p' < $BBCONFFILE)"
source ${BBROOTDIR}/misc/commands.idx