diff options
author | vnugent <public@vaughnnugent.com> | 2024-11-13 22:39:05 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-11-13 22:39:05 -0500 |
commit | 0654bf853e67cf5405b13316f20968a88d3c6cd8 (patch) | |
tree | 1dcc5a38428e2c99868a51db0ce05326ce755821 | |
parent | 5cf1addc4a7b70aafda5ad8953f114a206df93cc (diff) |
fix directory init
-rw-r--r-- | Taskfile.yaml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Taskfile.yaml b/Taskfile.yaml index 98eb1db..acd8b78 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -159,11 +159,14 @@ tasks: MBEDTLS_SRC_DIR: '{{ .CMAKE_BUILD_DIR }}/_deps/mbedtls' cmds: #remove source dirs if they exist - - cmd: rm -rf '{{ .MBEDTLS_SRC_DIR }}' && mkdir -p '{{ .MBEDTLS_SRC_DIR }}' + - cmd: rm -rf '{{ .MBEDTLS_SRC_DIR }}' platforms: [linux, darwin] - - cmd: powershell rm -Recurse -Force '{{ .MBEDTLS_SRC_DIR }}' && mkdir '{{ .MBEDTLS_SRC_DIR }}' + - cmd: powershell rm -Recurse -Force '{{ .MBEDTLS_SRC_DIR }}' platforms: [windows] ignore_error: true + + #ensure directory is created + - cmd: '{{ if eq OS "windows" }}powershell{{ end }} mkdir -p "{{ .MBEDTLS_SRC_DIR }}"' #download mbedtls archive - cmd: curl{{ exeExt }} -L '{{ .MBEDTLS_DOWNLOAD_URL }}' -o '{{ .MBEDTLS_DOWNLOAD_DIR }}/mbedtls.tar.bz2' |