aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-04-06 21:02:20 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-04-06 21:03:32 +0200
commit4fe6f1a7211fefe3e6817fb7f2a40504704fccc8 (patch)
treece218e8aee0f2394b4e85f29a985f96bfdc49885
parentFix "Make sure $TMPDIR exists" (diff)
downloadgenkernel-master.tar.gz
genkernel-master.tar.bz2
genkernel-master.zip
Remove `mkdir $TEMP` call which is no longer neededHEADmaster
...since we used `mktemp` before which already created that directory. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-xgen_cmdline.sh2
-rwxr-xr-xgenkernel4
2 files changed, 2 insertions, 4 deletions
diff --git a/gen_cmdline.sh b/gen_cmdline.sh
index be04cdb..ceaf212 100755
--- a/gen_cmdline.sh
+++ b/gen_cmdline.sh
@@ -591,7 +591,7 @@ parse_cmdline() {
then
mkdir -p "${TMPDIR}" || gen_die "Failed to create '${TMPDIR}'!"
fi
- TEMP=$(mktemp -d -p "${TMPDIR}" gk.XXXXXXXX)
+ TEMP=$(mktemp -d -p "${TMPDIR}" gk.XXXXXXXX 2>/dev/null)
[ -z "${TEMP}" ] && gen_die "mktemp failed!"
print_info 2 "TMPDIR: ${TMPDIR}"
print_info 2 "TEMP: ${TEMP}"
diff --git a/genkernel b/genkernel
index 5337833..bb936a3 100755
--- a/genkernel
+++ b/genkernel
@@ -49,7 +49,7 @@ then
mkdir -p "${TMPDIR}" || gen_die "Failed to create '${TMPDIR}'!"
fi
-TEMP=$(mktemp -d -p "${TMPDIR}" gk.XXXXXXXX)
+TEMP=$(mktemp -d -p "${TMPDIR}" gk.XXXXXXXX 2>/dev/null)
[ -z "${TEMP}" ] && gen_die "mktemp failed!"
trap_cleanup(){
@@ -156,8 +156,6 @@ determine_config_file
set_kernel_arch
-[ ! -f "${TEMP}" ] && mkdir "${TEMP}" || gen_die "Failed to create '${TEMP}'!"
-
setup_cache_dir
check_distfiles