diff options
Diffstat (limited to 'script/vendor/download')
-rwxr-xr-x | script/vendor/download | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/script/vendor/download b/script/vendor/download index 12231b39..4613c2b6 100755 --- a/script/vendor/download +++ b/script/vendor/download @@ -140,8 +140,10 @@ vendor_checksum() mkdirs() { - [ -f "${1}" ] && \ - printf "mkdirs ${1} ${2}: already downloaded\n" 1>&2 && return 1 + if [ -f "${1}" ]; then + printf "mkdirs ${1} ${2}: already downloaded\n" 1>&2 + return 1 + fi mkdir -p "${1%/*}" || err "mkdirs: !mkdir -p ${1%/*}" x_ rm -Rf "${appdir}" x_ mkdir -p "${appdir}/" |