sane-sandboxed: ignore the executable path when autodetecting media

This commit is contained in:
Colin 2024-01-23 16:32:06 +00:00
parent 571a0a9d06
commit bdd70f8fa2

View File

@ -207,7 +207,9 @@ done
if [ -n "$autodetect" ]; then
_pwd=$(pwd)
for _arg in "${cliArgs[@]}"; do
for _arg in "${cliArgs[@]:1}"; do
# TODO: might want to also mount the directory *above* this file,
# to access e.g. adjacent album art in the media's folder.
if [[ "$_arg" == "/*" ]]; then
test -e "$_arg" && "$method"IngestRootPath "$_arg"
elif test -e "$_pwd/$_arg"; then