From 1957dd8d804c914a3358788f5b0300440b445fa4 Mon Sep 17 00:00:00 2001 From: tigerbot Date: Mon, 10 Jul 2017 17:05:37 -0600 Subject: [PATCH] make sure downloaded files exist even if empty --- install.sh | 1 + update-packages.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a0e6f5a..50edace 100644 --- a/install.sh +++ b/install.sh @@ -44,6 +44,7 @@ detect_http_get() dap_dl() { $http_get $http_opts $http_out "$2" "$1" + touch "$2" } dap_dl_bash() diff --git a/update-packages.sh b/update-packages.sh index fb7348c..26a69b1 100755 --- a/update-packages.sh +++ b/update-packages.sh @@ -3,7 +3,7 @@ set -e set -u -pushd $(cd $(dirname ${0}) && pwd)/packages/assets +pushd $(dirname $(realpath ${0}))/packages/assets OAUTH3_GIT_URL="https://git.daplie.com/Oauth3/oauth3.js.git" git clone ${OAUTH3_GIT_URL} org.oauth3 || true