aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-01 05:42:14 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-01 05:42:14 +0200
commit9cd7baddbfa5a702486e35c2d8625106eb57981e (patch)
treeb5ef0e7b629be62b4ffda3b1a52bda75d4fae315 /update.sh
parenta9a3bbaf400e98d6b4e9cdf765728864fe14a7e2 (diff)
downloadarching-kaos-tools-9cd7baddbfa5a702486e35c2d8625106eb57981e.tar.gz
arching-kaos-tools-9cd7baddbfa5a702486e35c2d8625106eb57981e.tar.bz2
arching-kaos-tools-9cd7baddbfa5a702486e35c2d8625106eb57981e.zip
Removing old links when updating
Diffstat (limited to 'update.sh')
-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