fixes DOWNLOAD_DIR variable for windows

This commit is contained in:
Paras Mamgain
2019-06-11 15:13:10 +01:00
parent 426c6c3b9a
commit 6691438fa1

View File

@@ -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