mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-29 06:13:08 +01:00
formatting
This commit is contained in:
@@ -11,8 +11,7 @@ torrentid=$1
|
||||
torrentname=$2
|
||||
torrentpath=$3
|
||||
|
||||
log()
|
||||
{
|
||||
log() {
|
||||
logger -t deluge-extractarchives "$@"
|
||||
}
|
||||
|
||||
@@ -24,11 +23,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