You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
192 B

  1. #! /bin/sh
  2. # 1 - Dir
  3. # 2 - Link dst
  4. if [ $# -lt 1 ]
  5. then
  6. exit 0
  7. fi
  8. files=`find $1 -type l -maxdepth 1`
  9. res=$?
  10. if [ $res -ne 0 ] || [ "$files" = "" ]
  11. then
  12. exit 0
  13. fi
  14. rm -f $files