Closed drbachler closed 6 years ago
it seems aenv gets installed with a ruby-wrapper that tries to load the script as a ruby file.
@drbachler Can you show me what the contents of /usr/local/bin/aenv
is?
Here is my /usr/bin/local/aenv
[~]$` cat /usr/local/bin/aenv
#!/bin/bash
# Local Variables:
# mode: sh
# End:
if [ $# -lt 1 ]; then
echo "Usage: aenv cmd [arg1 arg2 ...]"
exit 1
fi
if [ -z "$AWSAM_ACTIVE_ACCOUNT" ]; then
echo "Must pick an account first with `aem use <>`"
exit 1
fi
ENV=$(raem --environ --account $AWSAM_ACTIVE_ACCOUNT --export)
eval $ENV
Yeah, @yosh-se is probably right about the ruby-wrapper for non-ruby scripts: https://github.com/rubygems/rubygems/issues/88. I'll convert this to a ruby script and see if it fixes the problem.
when trying to invoke aenv i get the following: