aboutsummaryrefslogtreecommitdiffstats
path: root/pony/watch
diff options
context:
space:
mode:
Diffstat (limited to 'pony/watch')
-rwxr-xr-xpony/watch4
1 files changed, 3 insertions, 1 deletions
diff --git a/pony/watch b/pony/watch
index e7e4123..c45ca4b 100755
--- a/pony/watch
+++ b/pony/watch
@@ -2,6 +2,7 @@
wget http://hackage.haskell.org/package/pony >/dev/null 2>/dev/null
if [ $? = 0 ]; then
+ [ -f unfetchable ] && rm unfetchable
md5sum < pony > new-sum
touch sum
if [ "$(cat sum)" = "$(cat new-sum)" ]; then
@@ -11,7 +12,8 @@ if [ $? = 0 ]; then
echo 'pony'
fi
rm pony
-else
+elif [ ! -f unfetchable ]
+ touch unfetchable
echo 'pony (unfetchable)'
fi