From f36b20ca28344659c665d02659bfdb1f55ace139 Mon Sep 17 00:00:00 2001 From: Ross Smith II Date: Wed, 10 Sep 2014 09:47:49 -0700 Subject: [PATCH] make sure executable is named packer.exe in Windows build [GH-1483] --- scripts/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 10c28fa7e..26885ba48 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -47,8 +47,10 @@ gox \ # Make sure "packer-packer" is renamed properly for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do set +e - mv ${PLATFORM}/packer-packer ${PLATFORM}/packer 2>/dev/null - mv ${PLATFORM}/packer-packer ${PLATFORM}/packer 2>/dev/null + # The asterisk allows for the packer directory to be a symlink + # (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 done