scripts/minecraft/texture-packs/getpacks.sh

25 lines
766 B
Bash
Raw Normal View History

2015-02-20 02:29:17 +00:00
#!/bin/bash
if [ -z "`ls | grep -v *.sh | grep SKYFALL`" ]
then
echo 'No SKYFALL Textures Detected, downloading ...';echo;
for file in $(curl -s minecraft.skyfallgames.com/current/ |
grep href |
sed 's/.*href="//' |
sed 's/".*//' |
grep '^[a-zA-Z].*'); do
echo $file; curl -# -O http://minecraft.skyfallgames.com/current/$file
done
else
echo 'SKYFALL Textures Detected, updating ...';echo;
for file in $(curl -s minecraft.skyfallgames.com/current/ |
grep href |
sed 's/.*href="//' |
sed 's/".*//' |
grep '^[a-zA-Z].*'); do
echo $file; curl -z $file -# -O http://minecraft.skyfallgames.com/current/$file
done
fi