#!/bin/bash set -e mkdir -p "$1" wdvn-get "$1" for WDVN_MODLIST in "${@:2}" do while IFS="" read -r WDVN_LINE || [ -n "$WDVN_LINE" ] do source wdvn-mod "mods/$WDVN_LINE" "$1" done < "modlists/$WDVN_MODLIST" done wdvn-clean "$1"