From 6691438fa12022db830c87143646e77dcbb07cec Mon Sep 17 00:00:00 2001 From: Paras Mamgain Date: Tue, 11 Jun 2019 15:13:10 +0100 Subject: [PATCH] fixes DOWNLOAD_DIR variable for windows --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 59ed6d4..e3f0536 100644 --- a/Makefile +++ b/Makefile @@ -81,13 +81,13 @@ endif ifneq (,$(findstring Microsoft,$(shell uname -r))) DOWNLOADS_DIR=$(patsubst /mnt/c%,C:%,$(realpath ./downloads/)) +else +ifneq (,$(findstring Windows,$(shell echo ${OS}))) + DOWNLOADS_DIR=$(shell pwd)/downloads/ else DOWNLOADS_DIR=$(realpath ./downloads/) endif -#Try to pick up the downloads directory if running in windows -ifneq (,$(findstring Windows,$(shell echo ${OS}))) - DOWNLOADS_DIR=$(shell pwd)/downloads/ endif # Try to figure out which archive to use from the architecture