Skip to content

OS X compatibility #1

@mattandrews

Description

@mattandrews

Hi – thanks for your great script.

I've been using this on my Mac and ran into a few issues:

  • readlink -f fails with an error (the -f flag doesn't exist) – I got around this by running brew install coreutils and changing readlink to greadlink.
  • sed -r fails for presumably similar reasons. Again, brew install gnu-sed then replacing it with gsed -r worked.
  • my AWS account credentials live in ~/.aws/credentials (which I think the AWS CLI docs recommend) but this script errors when looking for them in ~/.aws/config, so I changed those paths
  • my first successful run of the script uploaded a file called .zip because I forgot to set AWS_CODE_DEPLOY_S3_FILENAME – the other "required" variables cause the script to throw an error if they're not set, so maybe this one should too?

Hope this helps! Probably not worth me patching anything as these changes will likely break the app for non-OSX *nixes, but maybe worth noting somewhere in the readme?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions