From bf87d94330c6c6153eab9f1a3016efeef5ebc754 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 11 Mar 2024 19:36:28 +0200 Subject: Introduced ./lib for common stuff ofc, logit was the first lib to add... finally --- update.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'update.sh') diff --git a/update.sh b/update.sh index bfa66f2..cd2aeaf 100755 --- a/update.sh +++ b/update.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Updates bin files find $AK_BINDIR -type l | while read link do if [ ! -f $link ] @@ -9,9 +10,25 @@ do fi done -# Find scripts and create symlinks binfiles=$(ls -1 $(pwd)/bin) for b in $binfiles do if [ ! -L $AK_BINDIR/$b ] ; then ln -s $(pwd)/bin/$b $AK_BINDIR/$b ;fi done + +# Updates lib files +find $AK_LIBDIR -type l | while read link +do + if [ ! -f $link ] + then + echo "Non working link: $(basename $link) removing..." + rm $link + fi +done + +# Find scripts and create symlinks +libfiles=$(ls -1 $(pwd)/lib) +for l in $libfiles +do + if [ ! -L $AK_LIBDIR/$l ] ; then ln -s $(pwd)/lib/$l $AK_LIBDIR/$l ;fi +done -- cgit v1.2.3