-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bin/debsources-backup-db: fix reading of log_file configuration option
- Loading branch information
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (C) 2014 The Debsources developers <[email protected]>. | ||
# Copyright (C) 2014-2015 The Debsources developers <[email protected]>. | ||
# See the AUTHORS file at the top-level directory of this distribution and at | ||
# https://anonscm.debian.org/gitweb/?p=qa/debsources.git;a=blob;f=AUTHORS;hb=HEAD | ||
# | ||
|
@@ -31,7 +31,10 @@ fi | |
umask 0002 | ||
export LANG=C | ||
|
||
# minimal interpolation support, for the few configuration values needed here | ||
root_dir=$(grep "^root_dir:" "$conffile" | awk '{ print $2 }') | ||
log_dir=$(grep "^log_dir:" "$conffile" | awk '{ print $2 }') | ||
|
||
conf_get () { | ||
local key="$1" | ||
local value=$(grep "^${key}:" "$conffile" | head -n 1 | awk '{ print $2 }') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (C) 2013-2014 The Debsources developers <[email protected]>. | ||
# Copyright (C) 2013-2015 The Debsources developers <[email protected]>. | ||
# See the AUTHORS file at the top-level directory of this distribution and at | ||
# https://anonscm.debian.org/gitweb/?p=qa/debsources.git;a=blob;f=AUTHORS;hb=HEAD | ||
# | ||
|
@@ -36,8 +36,7 @@ fi | |
umask 0002 | ||
export LANG=C | ||
|
||
# minimal interpolation support, for the few configuration values needed | ||
# by the update driver | ||
# minimal interpolation support, for the few configuration values needed here | ||
root_dir=$(grep "^root_dir:" "$conffile" | awk '{ print $2 }') | ||
log_dir=$(grep "^log_dir:" "$conffile" | awk '{ print $2 }') | ||
|
||
|