Commit 033b1439 authored by Robby Colvin's avatar Robby Colvin

Fix for find in Linux

parent 9b406a90
...@@ -12,7 +12,7 @@ echo "${OK_COLOR}--> Compiling Packer${NO_COLOR}" ...@@ -12,7 +12,7 @@ echo "${OK_COLOR}--> Compiling Packer${NO_COLOR}"
go build -v -o bin/packer . go build -v -o bin/packer .
# Go over each plugin and build it # Go over each plugin and build it
for PLUGIN in $(find ./plugin -type d -mindepth 1 -maxdepth 1); do for PLUGIN in $(find ./plugin -mindepth 1 -maxdepth 1 -type d); do
PLUGIN_NAME=$(basename ${PLUGIN}) PLUGIN_NAME=$(basename ${PLUGIN})
echo "${OK_COLOR}--> Compiling Plugin: ${PLUGIN_NAME}${NO_COLOR}" echo "${OK_COLOR}--> Compiling Plugin: ${PLUGIN_NAME}${NO_COLOR}"
go build -v -o bin/packer-${PLUGIN_NAME} ${PLUGIN} go build -v -o bin/packer-${PLUGIN_NAME} ${PLUGIN}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment