We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bac0f15 commit 9688f5bCopy full SHA for 9688f5b
1 file changed
Classes/Composer/InstallerScripts.php
@@ -13,6 +13,20 @@ class InstallerScripts
13
private const PRUNNER_DISPATCH_SCRIPT = <<<'EOD'
14
#!/bin/sh
15
16
+# Polyfill for realpath which is not available on macOS per default (see https://stackoverflow.com/a/18443300)
17
+realpath() {
18
+ OURPWD=$PWD
19
+ cd "$(dirname "$1")"
20
+ LINK=$(readlink "$(basename "$1")")
21
+ while [ "$LINK" ]; do
22
+ cd "$(dirname "$LINK")"
23
24
+ done
25
+ REALPATH="$PWD/$(basename "$1")"
26
+ cd "$OURPWD"
27
+ echo "$REALPATH"
28
+}
29
+
30
SCRIPTS_DIR=$(dirname "$(realpath $0)")
31
32
OS_TYPE=$(uname -s)
0 commit comments