18 lines
324 B
Bash
Executable File
18 lines
324 B
Bash
Executable File
#!/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
|
|
if [ -L current ] ; then
|
|
rm current
|
|
fi
|
|
ln -s ${new} current
|
|
fi
|
|
cd ..
|
|
fi
|
|
done |