summaryrefslogtreecommitdiff
path: root/scripts/get.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/get.sh')
-rwxr-xr-xscripts/get.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index 21814e45e..060ee4e20 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -227,7 +227,8 @@ write_profile()
install_profile()
{
if [ ! -d ~/.xmake ]; then mkdir ~/.xmake; fi
- echo "export XMAKE_ROOTDIR=$prefix/bin" > ~/.xmake/profile
+ echo "export XMAKE_ROOTDIR=\"$prefix/bin\"" > ~/.xmake/profile
+ echo "export PATH=\"${XMAKE_ROOTDIR}:$PATH\"" >> ~/.xmake/profile
if [ -f "$projectdir/scripts/register-completions.sh" ]; then
cat "$projectdir/scripts/register-completions.sh" >> ~/.xmake/profile
else