projects
/
genkernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4588b75
)
Extract variable _GENKERNEL_CONF to resolve duplication and later re-use
author
Sebastian Pipping
<sebastian@pipping.org>
Sun, 12 Aug 2012 18:11:07 +0000
(20:11 +0200)
committer
Sebastian Pipping
<sebastian@pipping.org>
Sun, 12 Aug 2012 18:13:33 +0000
(20:13 +0200)
genkernel
patch
|
blob
|
history
diff --git
a/genkernel
b/genkernel
index b31444069248f2b695bc9abb66e0d4658d168eb9..eb149dbed95dd78c44014d41bf116eb97f17411f 100755
(executable)
--- a/
genkernel
+++ b/
genkernel
@@
-32,7
+32,8
@@
case "$*" in
esac
# Pull in our configuration
-source ${CMD_GK_CONFIG:-/etc/genkernel.conf} || small_die "Could not read /etc/genkernel.conf"
+_GENKERNEL_CONF=${CMD_GK_CONFIG:-/etc/genkernel.conf}
+source "${_GENKERNEL_CONF}" || small_die "Could not read ${_GENKERNEL_CONF}"
# Start sourcing other scripts
source ${GK_SHARE}/gen_funcs.sh || small_die "Could not read ${GK_SHARE}/gen_funcs.sh"