Skip to content

Commit

Permalink
Merge pull request #133 from akunzai/undeploy-on-cifs
Browse files Browse the repository at this point in the history
Use test -h instead of -type l to avoid bug in cifs
  • Loading branch information
colinmollenhour authored Feb 4, 2021
2 parents cd7c045 + 2edd71c commit dbc65a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modman
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbc65a8

Please sign in to comment.