aboutsummaryrefslogtreecommitdiff
path: root/update.sh
blob: bfa66f273130b3a6ae6e4e1ecf3850e2b56085a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

find $AK_BINDIR -type l | while read link
do
    if [ ! -f $link ]
    then
        echo "Non working link: $(basename $link) removing..."
        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