From 1b883da0cafceeb82883985486752d98299ece0e Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 1 Mar 2024 05:44:05 +0200 Subject: Firstly clean up AK_BINDIR, then make links --- update.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/update.sh b/update.sh index c84de77..bfa66f2 100755 --- a/update.sh +++ b/update.sh @@ -1,12 +1,5 @@ #!/bin/bash -# 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 find $AK_BINDIR -type l | while read link do if [ ! -f $link ] @@ -15,3 +8,10 @@ do rm $link 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 -- cgit v1.2.3