aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ebuild/src_compile.bash5
-rw-r--r--ebuild/src_install.bash4
2 files changed, 6 insertions, 3 deletions
diff --git a/ebuild/src_compile.bash b/ebuild/src_compile.bash
index 6f5c4d3..4147c6d 100644
--- a/ebuild/src_compile.bash
+++ b/ebuild/src_compile.bash
@@ -31,8 +31,9 @@ src_compile()
ebuild_f_compile()
{
- mkdir -p ${S}
- cd ${S} || die "cd to \${S} (\"${S}\") failed"
+ if [[ -d "${S}" ]]; then
+ cd "${S}" || die "cd to \${S} (\"${S}\") failed"
+ fi
if hasq "compile" ${RESTRICT} ; then
ebuild_section "Skipping src_compile (RESTRICT)"
diff --git a/ebuild/src_install.bash b/ebuild/src_install.bash
index 1fb9b0c..02ff2fb 100644
--- a/ebuild/src_install.bash
+++ b/ebuild/src_install.bash
@@ -28,7 +28,9 @@ src_install()
ebuild_f_install()
{
- cd ${S} || die "cd to \${S} (\"${S}\") failed"
+ if [[ -d "${S}" ]]; then
+ cd "${S}" || die "cd to \${S} (\"${S}\") failed"
+ fi
if hasq "install" ${RESTRICT} ; then
ebuild_section "Skipping src_install (RESTRICT)"