Rework
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
HASH=`wget https://api.github.com/repos/KenT2/python-games/git/refs/heads/master -qO -| grep \"sha\" | cut -f 2 -d ':' | cut -f 2 -d \"`
|
||||
HASH_LOCAL=`cat files/python_games.hash`
|
||||
|
||||
if [ -f files/python_games.hash ]; then
|
||||
HASH_LOCAL=`cat files/python_games.hash`
|
||||
fi
|
||||
|
||||
if [ ! -e files/python_games.tar.gz ] || [ "$HASH" != "$HASH_LOCAL" ]; then
|
||||
wget "https://github.com/KenT2/python-games/tarball/master" -O files/python_games.tar.gz
|
||||
|
Reference in New Issue
Block a user