From 50caed37debf686cd14d1748351eb199ea951c6b Mon Sep 17 00:00:00 2001 From: Arial-Z Date: Sat, 18 Feb 2023 15:42:38 +0100 Subject: [PATCH] Fix SCRIPT_FOLDER --- animes-renamer.sh | 2 +- movies-renamer.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/animes-renamer.sh b/animes-renamer.sh index 07715cc..8dce51f 100755 --- a/animes-renamer.sh +++ b/animes-renamer.sh @@ -1,6 +1,6 @@ #!/bin/bash -SCRIPT_FOLDER=$(dirname "$(readlink -f "$0")") +SCRIPT_FOLDER=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) echo "$SCRIPT_FOLDER" media_type=animes source $SCRIPT_FOLDER/.env diff --git a/movies-renamer.sh b/movies-renamer.sh index ef50b90..7e14868 100755 --- a/movies-renamer.sh +++ b/movies-renamer.sh @@ -1,6 +1,6 @@ #!/bin/bash -SCRIPT_FOLDER=$(dirname "$(readlink -f "$0")") +SCRIPT_FOLDER=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) echo "$SCRIPT_FOLDER" media_type=movies source $SCRIPT_FOLDER/.env