mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-02 08:25:02 -04:00
Fix sh script for non-bash shells
This commit is contained in:
parent
25f6edd065
commit
2ca7b6b806
@ -9,10 +9,10 @@ fetch()
|
||||
echo "Fetch $FILE"
|
||||
if [ ! -f "$FILE" ] || test "`find $FILE -mtime $TIME`"; then
|
||||
curl -L -o "$FILE" -z "$FILE" "$LINK"
|
||||
if [[ "$FILE" =~ \.gz$ ]]; then
|
||||
if [[ "$FILE" == *.gz ]]; then
|
||||
gunzip -k -f "$FILE"
|
||||
fi
|
||||
if [[ "$FILE" =~ \.zip$ ]]; then
|
||||
if [[ "$FILE" == *.zip ]]; then
|
||||
unzip -o "$FILE"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user