File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ abstract.bins_search_heuristics() {
84
84
done
85
85
else
86
86
for file in " $BPM_PACKAGES_PATH /$id " /* ; do
87
- if [ - x " $file " ]; then
87
+ if [[ -f " $file " && - x " $file " ] ]; then
88
88
abstract.bins_do_action " $action " " $file " " $remove_extensions "
89
89
fi
90
90
done
Original file line number Diff line number Diff line change @@ -170,6 +170,22 @@ load 'util/init.sh'
170
170
assert [ ! -e " $BPM_INSTALL_BIN /exec4.sh" ]
171
171
}
172
172
173
+ @test " does not add directories in root directory" {
174
+ local site=' github.com'
175
+ local pkg=' username/package'
176
+
177
+ test_util.setup_pkg " $pkg " ; {
178
+ mkdir ' directory1'
179
+ touch ' directory1/.gitkeep'
180
+ }; test_util.finish_pkg
181
+ test_util.mock_clone " $pkg " " $site /$pkg "
182
+
183
+ run do-plumbing-link-bins " $site /$pkg "
184
+
185
+ assert_success
186
+ assert [ ! -e " $BPM_INSTALL_BIN /directory1" ]
187
+ }
188
+
173
189
@test " doesn't link root bins if there is a bin folder" {
174
190
local site=' github.com'
175
191
local pkg=" username/package"
You can’t perform that action at this time.
0 commit comments