make sure executable is named packer.exe in Windows build [GH-1483]

This commit is contained in:
Ross Smith II 2014-09-10 09:47:49 -07:00
parent 0bf293f193
commit f36b20ca28
1 changed files with 4 additions and 2 deletions

View File

@ -47,8 +47,10 @@ gox \
# Make sure "packer-packer" is renamed properly # Make sure "packer-packer" is renamed properly
for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do
set +e set +e
mv ${PLATFORM}/packer-packer ${PLATFORM}/packer 2>/dev/null # The asterisk allows for the packer directory to be a symlink
mv ${PLATFORM}/packer-packer ${PLATFORM}/packer 2>/dev/null # (to a directory that must begin with the word 'packer')
mv ${PLATFORM}/packer-packer*.exe ${PLATFORM}/packer.exe 2>/dev/null
mv ${PLATFORM}/packer-packer* ${PLATFORM}/packer 2>/dev/null
set -e set -e
done done