Skip to content

Commit

Permalink
fix(xseed.sh/sonarr): inconsistent variables across events (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkarry authored Jul 23, 2024
1 parent 7c48ce4 commit af128b5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions xseed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,15 @@ detect_application() {
# shellcheck disable=SC2154 # These are set by Starr on call
folderPath="$sonarr_destinationpath"
else
[ -z "$sonarr_release_releasetype" ] && {
if [ -z "$sonarr_release_releasetype" ] then; {
# shellcheck disable=SC2154 # These are set by Starr on call
folderPath="$sonarr_episodefile_sourcefolder"
filePath="$sonarr_episodefile_path"
}
# shellcheck disable=SC2154 # These are set by Starr on call
filePath="$sonarr_episodefile_path"
else
# shellcheck disable=SC2154 # These are set by Starr on call
filePath="$sonarr_episodefile_paths"
fi
fi
# shellcheck disable=SC2154 # These are set by Starr on call
eventType="$sonarr_eventtype"
Expand Down

0 comments on commit af128b5

Please sign in to comment.