Anyone know how to fix?
Shell: Select all
#!/bin/bash
PATH=/home/me/filebot-portable:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin
# Input Parameters
ARG_PATH="$1"
ARG_NAME="$2"
ARG_LABEL="$3"
# Configuration
CONFIG_OUTPUT="/mnt/omkoda/"
if [ ut_label=FILM ]; then
/home/me/filebot-portable/filebot.sh -script fn:amc --output "$CONFIG_OUTPUT" --action hardlink -non-strict --conflict auto --log-file /home/me/logg/amc.log --def deleteAfterExtract=n --def clean=y --def excludeList="/home/me/logg/excludes" ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL" --def movieFormat=@/home/me/filebot-portable/MovieFormat.groovy &
fi
if [ ut_label=SERIE ]; then
/home/me/filebot-portable/filebot.sh -script fn:amc --output "$CONFIG_OUTPUT" --action copy -non-strict --conflict auto --log-file /home/me/logg/amc-serie.log --def deleteAfterExtract=n --def clean=y --def excludeList="/home/me/logg/excludes-serie" ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL" --def seriesFormat="/mnt/plex/Serie/{plex}" &
fi
exit 0