Skip to content

Commit

Permalink
Merge pull request #89 from robbanl/master
Browse files Browse the repository at this point in the history
Make sure .modman-skip file exists
  • Loading branch information
colinmollenhour committed Apr 15, 2015
2 parents 5597e06 + f2ba0bd commit bae2a51
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions modman
Expand Up @@ -348,12 +348,13 @@ set_basedir ()
get_skipped ()
{
local module=$1
for line in $(grep -v -e '^#' "$root/.modman-skip"); do
if [ $line == $module ]; then
return 0
fi
done

if [ -f "$root/.modman-skip" ]; then
for line in $(grep -v -e '^#' "$root/.modman-skip"); do
if [ $line == $module ]; then
return 0
fi
done
fi
return 1
}

Expand Down

0 comments on commit bae2a51

Please sign in to comment.