summaryrefslogtreecommitdiff
path: root/storage/ndb/tools/clean-links.sh
blob: 01820f30616303d84a3ee91c9365fca6f3e4c7c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

# 1 - Dir
# 2 - Link dst

if [ $# -lt 1 ]
then
    exit 0
fi

files=`find $1 -type l -maxdepth 1`
res=$?
if [ $res -ne 0 ] || [ "$files" = "" ]
then
    exit 0
fi

rm -f $files