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() {
8484done
8585else
8686for file in " $BPM_PACKAGES_PATH /$id " /* ; do
87- if [ - x " $file " ]; then
87+ if [[ -f " $file " && - x " $file " ] ]; then
8888abstract.bins_do_action " $action " " $file " " $remove_extensions "
8989fi
9090done
Original file line number Diff line number Diff line change @@ -170,6 +170,22 @@ load 'util/init.sh'
170170assert [ ! -e " $BPM_INSTALL_BIN /exec4.sh" ]
171171}
172172
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+
173189@test " doesn't link root bins if there is a bin folder" {
174190local site=' github.com'
175191local pkg=" username/package"
You can’t perform that action at this time.
0 commit comments