mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-21 05:10:52 +00:00
revert
This commit is contained in:
@@ -11,7 +11,8 @@ torrentid=$1
|
||||
torrentname=$2
|
||||
torrentpath=$3
|
||||
|
||||
log() {
|
||||
log()
|
||||
{
|
||||
logger -t deluge-extractarchives "$@"
|
||||
}
|
||||
|
||||
@@ -23,11 +24,11 @@ for format in "${formats[@]}"; do
|
||||
cd "$(dirname "$file")"
|
||||
file=$(basename "$file")
|
||||
# if extraction_subdir is not empty, extract to subdirectory
|
||||
if [[ ! -z "$extraction_subdir" ]]; then
|
||||
if [[ ! -z "$extraction_subdir" ]] ; then
|
||||
mkdir "$extraction_subdir"
|
||||
cd "$extraction_subdir"
|
||||
file="../$file"
|
||||
fi
|
||||
${commands[$format]} "$file"
|
||||
done < <(find "$torrentpath/$torrentname" -iname "*.${format}")
|
||||
done
|
||||
done < <(find "$torrentpath/$torrentname" -iname "*.${format}" )
|
||||
done
|
||||
Reference in New Issue
Block a user