20 lines
213 B
Bash
Executable file
20 lines
213 B
Bash
Executable file
#!/bin/bash
|
|
|
|
actualpwd="$PWD"
|
|
|
|
temp=$(mktemp -d)
|
|
|
|
cd "$temp"
|
|
|
|
for file in "${actualpwd}/"*
|
|
do
|
|
ln -s "$file" ./
|
|
done
|
|
|
|
youtube-dl "$@" --exec "mv -n {} \"${actualpwd}/\""
|
|
|
|
status="$?"
|
|
|
|
rm -rf "$temp"
|
|
|
|
exit $status
|