diff options
author | 2019-11-18 04:23:05 +0100 | |
---|---|---|
committer | 2019-11-21 01:03:35 +0100 | |
commit | f97328bcd54200d51163b64e132e85f72bf661aa (patch) | |
tree | ed507e60a0dbb600843602cb81b79e07f388ae0d /gen_determineargs.sh | |
parent | gen_configkernel.sh: determine_kernel_config_file(): clarify $KERNEL_CONFIG e... (diff) | |
download | genkernel-f97328bcd54200d51163b64e132e85f72bf661aa.tar.gz genkernel-f97328bcd54200d51163b64e132e85f72bf661aa.tar.bz2 genkernel-f97328bcd54200d51163b64e132e85f72bf661aa.zip |
gen_determineargs.sh: determine_real_args(): Expand $LOGFILE
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_determineargs.sh')
-rwxr-xr-x | gen_determineargs.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gen_determineargs.sh b/gen_determineargs.sh index c2a2b2d..3c2ccf4 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -396,6 +396,12 @@ determine_real_args() { # initialize $KERNEL_OUTPUTDIR... set_config_with_override STRING KERNEL_OUTPUTDIR CMD_KERNEL_OUTPUTDIR "${KERNEL_DIR}" + LOGFILE=$(expand_file "${CMD_LOGFILE}" 2>/dev/null) + if [ -z "${LOGFILE}" ] + then + small_die "Failed to expand --logfile value '${CMD_LOGFILE}'!" + fi + local can_write_log=no if [ -w "${LOGFILE}" ] then |