From 0654bf853e67cf5405b13316f20968a88d3c6cd8 Mon Sep 17 00:00:00 2001 From: vnugent Date: Wed, 13 Nov 2024 22:39:05 -0500 Subject: fix directory init --- Taskfile.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Taskfile.yaml') 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' -- cgit