diff options
Diffstat (limited to 'Mk/Scripts/do-fetch.sh')
-rw-r--r-- | Mk/Scripts/do-fetch.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Mk/Scripts/do-fetch.sh b/Mk/Scripts/do-fetch.sh index 6b646c96a83c..6b1fba18dd1a 100644 --- a/Mk/Scripts/do-fetch.sh +++ b/Mk/Scripts/do-fetch.sh @@ -17,10 +17,14 @@ validate_env dp_DEVELOPER dp_DISABLE_SIZE dp_DISTDIR dp_DISTINFO_FILE \ set -u -if [ ! -d "${dp_DISTDIR}" ]; then - mkdir -p "${dp_DISTDIR}" -fi -cd "${dp_DISTDIR}" +case ${dp_TARGET} in + do-fetch|makesum) + if [ ! -d "${dp_DISTDIR}" ]; then + mkdir -p "${dp_DISTDIR}" + fi + cd "${dp_DISTDIR}" + ;; +esac for _file in "${@}"; do file=${_file%%:*} |