Skip to content

Commit af128b5

Browse files
authored
fix(xseed.sh/sonarr): inconsistent variables across events (#20)
1 parent 7c48ce4 commit af128b5

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

xseed.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,15 @@ detect_application() {
8585
# shellcheck disable=SC2154 # These are set by Starr on call
8686
folderPath="$sonarr_destinationpath"
8787
else
88-
[ -z "$sonarr_release_releasetype" ] && {
88+
if [ -z "$sonarr_release_releasetype" ] then; {
8989
# shellcheck disable=SC2154 # These are set by Starr on call
9090
folderPath="$sonarr_episodefile_sourcefolder"
91+
filePath="$sonarr_episodefile_path"
9192
}
92-
# shellcheck disable=SC2154 # These are set by Starr on call
93-
filePath="$sonarr_episodefile_path"
93+
else
94+
# shellcheck disable=SC2154 # These are set by Starr on call
95+
filePath="$sonarr_episodefile_paths"
96+
fi
9497
fi
9598
# shellcheck disable=SC2154 # These are set by Starr on call
9699
eventType="$sonarr_eventtype"

0 commit comments

Comments
 (0)