update_addon_repo: scan the addon dir after updating and remove dead symlinks (which represent deprecated/removed addons).

This commit is contained in:
zotlabs 2018-07-15 21:34:06 -07:00
parent cc91db55b7
commit c187461985

View File

@ -44,3 +44,10 @@ for a in "${filelist[@]}" ; do
echo linking $base
ln -s ../extend/addon/$1/$base $base
done
for x in `ls` ; do
if [ -L "$x" ] && ! [ -e "$x" ]; then
echo "removing dead symlink $x" ;
rm -- "$x";
fi;
done