#!/usr/bin/env bash echo "Creating target directory with current user permissions..." mkdir -p $2 echo "Running plex_symlinker in Docker..." docker run -it --user "$(id -u):$(id -g)" --rm -v "$1":/app/source:ro -v "$2":/app/target --env SYMLINK_TARGET_DIR="$1" sterexx/plex_symlinker