Skip to content

Commit 8325ebc

Browse files
committed
Copy swiftly to the user home directory instead of install it in their home directory
1 parent bd1f041 commit 8325ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/package/postinstall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88
if [ "$DSTROOT" == "/usr/local" ]; then
99
realuser=$(basename "$HOME")
1010
if [ "$realuser" != "root" ]; then
11-
sudo -u "$realuser" installer -pkg "$PACKAGE_PATH" -target CurrentUserHomeDirectory
11+
sudo -u "$realuser" cp /usr/local/bin/swiftly "$HOME"
1212
pkgutil --forget org.swift.swiftly --volume / || true
1313
rm /usr/local/bin/swiftly
1414
fi

0 commit comments

Comments
 (0)