diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 05:44:05 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 05:44:05 +0200 |
commit | 1b883da0cafceeb82883985486752d98299ece0e (patch) | |
tree | f608cfb9406eabea8d221155ae56e80badc98982 | |
parent | 9cd7baddbfa5a702486e35c2d8625106eb57981e (diff) | |
download | arching-kaos-tools-1b883da0cafceeb82883985486752d98299ece0e.tar.gz arching-kaos-tools-1b883da0cafceeb82883985486752d98299ece0e.tar.bz2 arching-kaos-tools-1b883da0cafceeb82883985486752d98299ece0e.zip |
Firstly clean up AK_BINDIR, then make links
-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 |