1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-07 04:01:59 +03:00
mariadb/ndb/tools/clean-links.sh
unknown 6386c55cee Initial revision of NDB Cluster files
BitKeeper/etc/logging_ok:
  Logging to logging@openlogging.org accepted
2004-04-14 10:53:21 +02:00

22 lines
192 B
Bash
Executable File

#! /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