ntheanh201 commented on code in PR #7981:
URL: https://github.com/apache/trafficcontrol/pull/7981#discussion_r1621725686


##########
build/functions.sh:
##########
@@ -13,16 +13,44 @@
 #
 # shellcheck shell=ash
 
-if ! type -p realpath; then
-       # by default, macOS does not have realpath
-       realpath() {
-               ls "$(
-                       cd "$(dirname "$0")"
-                       pwd -P # -P resolves symlinks
-               )/$(basename "$0")"
-       }
-       export -f realpath
-fi;
+# macOS's version of realpath does not resolve symlinks, so we add a function
+# for it.
+get_realpath() {

Review Comment:
   <img width="676" alt="image" 
src="https://github.com/apache/trafficcontrol/assets/29043139/02959ba7-1532-4cea-b6b9-19749d3a9b1d";>
   even if I have realpath, it doesn't work on MacOS



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to