scripts: fix executable name when packer dir is a symlink

This commit is contained in:
Ross Smith II 2014-04-28 19:06:08 -07:00
parent 5cd2cfa563
commit 8cdd784e46
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ 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.exe ${PLATFORM}/packer.exe 2>/dev/null
mv ${PLATFORM}/packer-packer*.exe ${PLATFORM}/packer.exe 2>/dev/null
mv ${PLATFORM}/packer-packer* ${PLATFORM}/packer 2>/dev/null
set -e
done