Add shell script that gets the job done.
This commit is contained in:
parent
82a9d870db
commit
c670dea630
19
update_exercism.sh
Executable file
19
update_exercism.sh
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/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 [ -f current ] ; then
|
||||||
|
rm current
|
||||||
|
fi
|
||||||
|
ln -s ${new} current
|
||||||
|
fi
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user