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