From ad17ba60352fd442a9373b306c5b808eca98f91a Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.anjos@idiap.ch> Date: Fri, 23 Sep 2016 12:38:24 +0200 Subject: [PATCH] Always download updates --- gitlab/install.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/gitlab/install.sh b/gitlab/install.sh index 6089fdd..813ec4e 100755 --- a/gitlab/install.sh +++ b/gitlab/install.sh @@ -36,18 +36,9 @@ run_cmd() { get_script() { local url="https://gitlab.idiap.ch/bob/bob.admin/raw/master/gitlab/${2}" local curlopt="--location --silent --show-error --output ${1}/${2}" - if [ -e ${1}/${2} ]; then #check for updates - local checkopt="${curlopt} --time-cond ${1}/${2} --silent" - checkopt="${checkopt} --write-out %{http_code}" - if [ "$(curl ${checkopt} ${url})" == "200" ]; then - log_info "CI script ${1}/${2} needs updating..." - rm -f ${1}/${2} - else - log_info "CI script ${1}/${2} is up-to-date" - return 0 - fi + if [ -e ${1}/${2} ]; then + rm -f ${1}/${2} fi - # check file needs updating run_cmd curl ${curlopt} ${url} } -- GitLab