I am using several bash scripts for build and deployment processes which use readlink
with the -e
option. Since this option is not available I followed this suggest to install coreutils
and create a symbolink between greadlink
and readlink
.
This worked perfectly on my Intel mac but when I recently switch to M1 mac I realized that the path to greadlink
and readlink
are changed so I tried this:
ln -s /opt/homebrew/bin/greadlink /usr/bin/readlink
Which gave me an error: Operation not permitted
I realised that this is because of the System Integrity Protection
How can I still use readlink -e
in my bash scripts without deactivate the System Integrity Protection?