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

21 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