diff options
-rwxr-xr-x | update.sh | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 |