Skip to content

Commit dbc65a8

Browse files
Merge pull request #133 from akunzai/undeploy-on-cifs
Use test -h instead of -type l to avoid bug in cifs
2 parents cd7c045 + 2edd71c commit dbc65a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modman

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,8 @@ remove_module_links ()
416416
{
417417
log "Removing links for module $module."
418418
local module_dir="$mm/$module"
419-
for line in $(find $root -type l); do
419+
# Use test -h instead of -type l to avoid bug in cifs
420+
for line in $(find $root -exec test -h {} \; -print); do
420421
if [[ $(get_abs_filename "$line") =~ ^"$module_dir".* ]]; then
421422
rm "$line"
422423
fi

0 commit comments

Comments
 (0)