From 9cd7baddbfa5a702486e35c2d8625106eb57981e Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 1 Mar 2024 05:42:14 +0200 Subject: Removing old links when updating --- update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3