aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-01 05:44:05 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-01 05:44:05 +0200
commit1b883da0cafceeb82883985486752d98299ece0e (patch)
treef608cfb9406eabea8d221155ae56e80badc98982 /update.sh
parent9cd7baddbfa5a702486e35c2d8625106eb57981e (diff)
downloadarching-kaos-tools-1b883da0cafceeb82883985486752d98299ece0e.tar.gz
arching-kaos-tools-1b883da0cafceeb82883985486752d98299ece0e.tar.bz2
arching-kaos-tools-1b883da0cafceeb82883985486752d98299ece0e.zip
Firstly clean up AK_BINDIR, then make links
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh14
1 files 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