Files
torsearch/bash/app/wget_download.sh

3 lines
164 B
Bash
Executable File

# $1 = movies/tvshows/etc, $2 = title of media, $3 = URL of download
cd /var/download/${1} && if [ ! -d "${2}" ]; then mkdir "${2}"; fi && cd "${2}" && wget "${3}"