Closed jonasbn closed 6 years ago
If the issue is in the cron
setup, this is not a bug in macaliaser
, but it should be addressed in the documentation any how.
The problem is that users $PATH
is not know to the job is running under cron
. There is more that one way to address the issue. I settled for:
. $HOME/.bash_profile; /Users/jonasbn/bin/macaliaser -i /Applications /Users/jonasbn/Applications > /Users/jonasbn/.aliases
Solution provided by Stack Overflow.
Documentation will be updated accordingly.
Issue Template
Description
Issue with Docker.app and alias when running from
cron
. I am pondering if the issue is based on insufficient$PATH
definition.Bugs and Issues
Specify what version was used
Version based on master from GitHub, as of 2018-03-01 (and earlier).
Supply some information on the environment
Please provide some information on your Perl interpreter.
Expected behaviour
What behaviour did you expect?
I would expect
docker
to preserved as the command line tool and the Docker.app would be aliased asdockerapp
Actual and observed behaviour
What behaviour did you observe?
The suggested
alias
shadows the command line tooldocker
Steps to reproduce the behaviour
A test, script or one-liner is preferred, but anything that can help is good