1
mirror of https://github.com/yt-dlp/yt-dlp synced 2024-12-20 18:15:54 +01:00
yt-dlp/yt-dlp.sh
Felix S 155510fe81
Improve the yt-dlp.sh script (#248)
* Quote the `$0` variable to correctly handle spaces
* Change the shebang line to `/bin/sh` to avoid unnecessarily depending on bash
* Use the `exec` command to avoid having the shell process linger unnecessarily
* Change the mode to make the script directly executable

Authored by: fstirlitz

:ci skip all
2021-04-17 19:21:25 +05:30

3 lines
79 B
Bash
Executable File

#!/bin/sh
exec python3 "$(dirname "$(realpath "$0")")/yt_dlp/__main__.py" "$@"