removed hardcoded path

removed hardcoded path, added dynamic path
This commit is contained in:
0n1cOn3 2024-11-06 07:33:39 +01:00 committed by GitHub
parent 94eebc0a95
commit 3b3afd469d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,2 +1,4 @@
#!/bin/bash
python3 "/mnt/sda2/Work/Projects/yt-dlp-proxy/main.py" $@
# Get the directory where the script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
python3 "$SCRIPT_DIR/main.py" "$@"