From 2edd71c92b4a1b7e3d78659a6acdcdb18f73700d Mon Sep 17 00:00:00 2001 From: Charley Wu Date: Thu, 4 Feb 2021 11:10:01 +0800 Subject: [PATCH] Use test -h instead of -type l to avoid bug in cifs Fix #132 --- modman | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modman b/modman index f42b0a3..41db9f7 100755 --- a/modman +++ b/modman @@ -416,7 +416,8 @@ remove_module_links () { log "Removing links for module $module." local module_dir="$mm/$module" - for line in $(find $root -type l); do + # Use test -h instead of -type l to avoid bug in cifs + for line in $(find $root -exec test -h {} \; -print); do if [[ $(get_abs_filename "$line") =~ ^"$module_dir".* ]]; then rm "$line" fi