32 lines
361 B
Bash
Executable File
32 lines
361 B
Bash
Executable File
# faux show downloader
|
|
|
|
HDvideo=""
|
|
MP3audio=""
|
|
|
|
|
|
destDIR="/home/$USER/syncs/fauxshow/"
|
|
|
|
function chkDIR(){
|
|
if [ ! -d ${destDIR} ];then
|
|
mkdir ${destDIR}
|
|
elif [ -d ${destDIR} ];then
|
|
main
|
|
fi
|
|
}
|
|
|
|
|
|
function main(){
|
|
|
|
rm -v -R ${destDIR}*.mp3
|
|
rm -v -R ${destDIR}*.mp4
|
|
|
|
wget ${HDvideo} -P ${destDIR}
|
|
|
|
wget ${MP3audio} -P ${destDIR}
|
|
|
|
|
|
|
|
}
|
|
|
|
chkDIR
|