From 3b3afd469d3a8bcedcc565d8a1f77a498300ece7 Mon Sep 17 00:00:00 2001 From: 0n1cOn3 <0n1cOn3@gmx.ch> Date: Wed, 6 Nov 2024 07:33:39 +0100 Subject: [PATCH] removed hardcoded path removed hardcoded path, added dynamic path --- yt-dlp-proxy_link | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yt-dlp-proxy_link b/yt-dlp-proxy_link index 862bd0a..af618b8 100644 --- a/yt-dlp-proxy_link +++ b/yt-dlp-proxy_link @@ -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" "$@"