mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-22 07:43:08 +00:00
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
This commit is contained in:
parent
201c145953
commit
155510fe81
1 changed files with 2 additions and 2 deletions
4
yt-dlp.sh
Normal file → Executable file
4
yt-dlp.sh
Normal file → Executable file
|
@ -1,2 +1,2 @@
|
|||
#!/bin/bash
|
||||
python3 "$(dirname $(realpath $0))/yt_dlp/__main__.py" "$@"
|
||||
#!/bin/sh
|
||||
exec python3 "$(dirname "$(realpath "$0")")/yt_dlp/__main__.py" "$@"
|
||||
|
|
Loading…
Reference in a new issue