1
0
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:
Reinhard Pointner 2016-02-08 23:33:40 +00:00
parent 25f6edd065
commit 2ca7b6b806

View File

@ -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