aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
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