aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xupdate.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index 06624da..c84de77 100755
--- a/update.sh
+++ b/update.sh
@@ -7,3 +7,11 @@ for b in $binfiles
do
if [ ! -L $AK_BINDIR/$b ] ; then ln -s $(pwd)/bin/$b $AK_BINDIR/$b ;fi
done
+find $AK_BINDIR -type l | while read link
+do
+ if [ ! -f $link ]
+ then
+ echo "Non working link: $(basename $link) removing..."
+ rm $link
+ fi
+done