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