2015-11-18 23:13:37 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
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
|
2015-11-18 23:46:37 +00:00
|
|
|
if [ -L current ] ; then
|
2015-11-18 23:13:37 +00:00
|
|
|
rm current
|
|
|
|
fi
|
|
|
|
ln -s ${new} current
|
|
|
|
fi
|
|
|
|
cd ..
|
|
|
|
fi
|
|
|
|
done
|