From: Sebastian Pipping Date: Sun, 12 Aug 2012 18:11:07 +0000 (+0200) Subject: Extract variable _GENKERNEL_CONF to resolve duplication and later re-use X-Git-Tag: v3.4.41~4^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=780299182696ffae042061df4fd714e7177abeea;p=genkernel.git Extract variable _GENKERNEL_CONF to resolve duplication and later re-use --- diff --git a/genkernel b/genkernel index b314440..eb149db 100755 --- 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"