exports before installing git-ssb
This commit is contained in:
parent
d292fdf9e3
commit
0ce090ab8b
|
@ -409,6 +409,10 @@ EOF
|
||||||
|
|
||||||
cat <<EOF > "$rootdir/usr/bin/install_git_ssb"
|
cat <<EOF > "$rootdir/usr/bin/install_git_ssb"
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
npm config set prefix '~/.npm-global'
|
||||||
|
export PATH=~/.npm-global/bin:$PATH
|
||||||
|
export NPM_CONFIG_PREFIX=~/.npm-global
|
||||||
|
source ~/.profile
|
||||||
if ! npm install --arch=$NPM_ARCH -g git-ssb; then
|
if ! npm install --arch=$NPM_ARCH -g git-ssb; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -256,6 +256,7 @@ if [[ "$PATH" != *'~/.npm-global/bin'* ]]; then
|
||||||
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
|
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
|
||||||
fi
|
fi
|
||||||
export NPM_CONFIG_PREFIX=~/.npm-global
|
export NPM_CONFIG_PREFIX=~/.npm-global
|
||||||
|
echo 'export NPM_CONFIG_PREFIX=~/.npm-global' >> ~/.bashrc
|
||||||
source ~/.profile
|
source ~/.profile
|
||||||
EOF
|
EOF
|
||||||
chroot "$rootdir" /bin/chmod +x /usr/bin/install_npm_global
|
chroot "$rootdir" /bin/chmod +x /usr/bin/install_npm_global
|
||||||
|
|
Loading…
Reference in New Issue