From 780299182696ffae042061df4fd714e7177abeea Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 12 Aug 2012 20:11:07 +0200 Subject: [PATCH] Extract variable _GENKERNEL_CONF to resolve duplication and later re-use --- genkernel | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.26.2