Commit 9a21b093 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

fix regression for detecting file; fix comments in extracting step

parent 56c67745
......@@ -84,17 +84,17 @@ app_version=$(sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p'
do
echo "downloading external: '$url'.."
curl --fail -s -o file "${url}" || fail
if file | grep ' Zip archive data' > /dev/null
if file file| grep ' Zip archive data' > /dev/null
then
echo "external '${file}' is detected as zip file, using unzip.."
echo "external '$(basename ${url})' is detected as zip file, using unzip.."
unzip -q file || fail
fi
if file | grep 'gzip compressed data' > /dev/null
if file file | grep 'gzip compressed data' > /dev/null
then
echo "external '${file}' is detected as tar.gz file, using tar.."
echo "external '$(basename ${url})' is detected as tar.gz file, using tar.."
tar xf file || fail
fi
echo "removing exernal archive: $file"
echo "removing exernal archive: '$(basename ${url})'"
rm file || fail
done
rm -rf else/*.wav else/*.aif else/Live-Electronics-Tutorial || fail
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment