update_addon_repo: scan the addon dir after updating and remove dead symlinks (which represent deprecated/removed addons).
This commit is contained in:
parent
cc91db55b7
commit
c187461985
@ -44,3 +44,10 @@ for a in "${filelist[@]}" ; do
|
|||||||
echo linking $base
|
echo linking $base
|
||||||
ln -s ../extend/addon/$1/$base $base
|
ln -s ../extend/addon/$1/$base $base
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for x in `ls` ; do
|
||||||
|
if [ -L "$x" ] && ! [ -e "$x" ]; then
|
||||||
|
echo "removing dead symlink $x" ;
|
||||||
|
rm -- "$x";
|
||||||
|
fi;
|
||||||
|
done
|
||||||
|
Reference in New Issue
Block a user