aboutsummaryrefslogtreecommitdiff
path: root/Taskfile.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'Taskfile.yaml')
-rw-r--r--Taskfile.yaml7
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'