diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 05:42:14 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 05:42:14 +0200 |
commit | 9cd7baddbfa5a702486e35c2d8625106eb57981e (patch) | |
tree | b5ef0e7b629be62b4ffda3b1a52bda75d4fae315 /update.sh | |
parent | a9a3bbaf400e98d6b4e9cdf765728864fe14a7e2 (diff) | |
download | arching-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-x | update.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |