diff options
| author | xq114 <[email protected]> | 2021-08-24 21:11:47 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2021-08-24 21:11:47 +0800 |
| commit | e273de15d253d4dc1b904e4fa0da5fb1bbe57304 (patch) | |
| tree | fa4b6a851804245e4a69bdefcc1c85d96689fca7 /scripts/get.sh | |
| parent | a21ec09a71f0e4c60957b37eb61e33f1a4ae6e86 (diff) | |
move PATH setting to toplevel
Diffstat (limited to 'scripts/get.sh')
| -rwxr-xr-x | scripts/get.sh | 3 |
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 |
