Doh, check for links, not for files
This commit is contained in:
parent
c670dea630
commit
3649eb0311
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user