Commit 8de02b75 authored by Eric Duminil's avatar Eric Duminil
Browse files

Remove file if not large enough

parent e8a880fb
...@@ -12,7 +12,7 @@ INSTALLER_URL = https://web.archive.org/web/20070611110850fw_/http://nesa1.uni-s ...@@ -12,7 +12,7 @@ INSTALLER_URL = https://web.archive.org/web/20070611110850fw_/http://nesa1.uni-s
download_setup_exe: ## Downloads installer if missing download_setup_exe: ## Downloads installer if missing
@[ -f CASAnova_Setup.exe ] || { echo "${green}Downloading CASAnova_Setup.exe...${no_color}"; wget "$(INSTALLER_URL)" -O CASAnova_Setup.exe; } @[ -f CASAnova_Setup.exe ] || { echo "${green}Downloading CASAnova_Setup.exe...${no_color}"; wget "$(INSTALLER_URL)" -O CASAnova_Setup.exe; }
@[ -f CASAnova_Setup.exe ] && [ $$(stat -c%s CASAnova_Setup.exe) -gt 1000000 ] \ @[ -f CASAnova_Setup.exe ] && [ $$(stat -c%s CASAnova_Setup.exe) -gt 1000000 ] \
|| { echo "${red}CASAnova_Setup.exe missing or too small (download failed?)${no_color}"; exit 1; } || { echo "${red}CASAnova_Setup.exe missing or too small (download failed?)${no_color}"; rm -f CASAnova_Setup.exe; exit 1; }
build: download_setup_exe ## Build the Docker image (downloads installer if missing). build: download_setup_exe ## Build the Docker image (downloads installer if missing).
@echo "${green}Building image...${no_color}" @echo "${green}Building image...${no_color}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment