nextcloud-desktop/admin/win/download_runtimes.sh
Andy Scherzinger 00994aa9e8
docs(reuse): Migrate to SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-04-16 15:19:26 +02:00

23 lines
476 B
Bash
Executable File

#!/bin/sh -x
# SPDX-FileCopyrightText: 2014 ownCloud, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later
#VS2013
base_url=http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3
tmp_path=${1:-/tmp/.vcredist}
mkdir -p $tmp_path
copy_cached_file() {
file=$1
if [ ! -e $tmp_path/$file ]; then
wget -O $tmp_path/$file $base_url/$file
fi
cp -a $tmp_path/$file $PWD
}
copy_cached_file "vcredist_x64.exe"
copy_cached_file "vcredist_x86.exe"