#!/bin/bash
#
# Managed by Puppet
#
# Mirror Anaconda Scientific Python installers
#
BASE_DIR="<%= @base_dir =%>"
BASE_URL="<%= @base_url =%>"
V2_BASE="<%= @v2_base =%>"
V3_BASE="<%= @v3_base =%>"
SWITCHES="--no-clobber --no-parent --recursive"

# Mirror v2
mkdir -p "${BASE_DIR}/v2"
cd "${BASE_DIR}/v2"
wget $SWITCHES "${BASE_URL}/${V2_BASE}"

# Mirror v3
mkdir -p "${BASE_DIR}/v3"
cd "${BASE_DIR}/v3"
wget $SWITCHES "${BASE_URL}/${V3_BASE}"

#!/bin/bash
#
# Managed by Puppet
#
# Mirror Anaconda Scientific Python installers
#
BASE_DIR="<%= @base_dir %>"
BASE_URL="<%= @base_url %>"
V2_BASE="<%= @v2_base %>"
V3_BASE="<%= @v3_base %>"
SWITCHES="--no-clobber --no-parent --recursive"

# Mirror v2
mkdir -p "${BASE_DIR}/v2"
cd "${BASE_DIR}/v2"
wget $SWITCHES "${BASE_URL}/${V2_BASE}"

# Mirror v3
mkdir -p "${BASE_DIR}/v3"
cd "${BASE_DIR}/v3"
wget $SWITCHES "${BASE_URL}/${V3_BASE}"

Fix local scope var lookup typo
Fix local scope var lookup typo
