diff --git a/update_exercism.sh b/update_exercism.sh index bab1e0f..f33d546 100755 --- a/update_exercism.sh +++ b/update_exercism.sh @@ -2,14 +2,13 @@ exercism fetch cd `exercism debug | grep "Exercises Directory" | cut -d: -f2` - for D in *; do if [ -d "${D}" ] ; then cd ${D} new=$(ls -tr|tail -n 1) if [ ${new} != "current" ] ; then - if [ -f current ] ; then + if [ -L current ] ; then rm current fi ln -s ${new} current