@@ -9,6 +9,7 @@ ALIAS_NUGET="${NUGETALIAS:-"true"}"
9
9
ALIAS_NPM=" ${NPMALIAS:- " true" } "
10
10
ALIAS_YARN=" ${YARNALIAS:- " true" } "
11
11
ALIAS_NPX=" ${NPXALIAS:- " true" } "
12
+ ALIAS_RUSH=" ${RUSHALIAS:- " true" } "
12
13
13
14
# Source /etc/os-release to get OS info
14
15
. /etc/os-release
@@ -63,6 +64,11 @@ chmod +rx /usr/local/bin/write-npm.sh
63
64
cp ./scripts/run-npx.sh /usr/local/bin/run-npx.sh
64
65
chmod +rx /usr/local/bin/run-npx.sh
65
66
67
+ cp ./scripts/run-rush.sh /usr/local/bin/run-rush.sh
68
+ chmod +rx /usr/local/bin/run-rush.sh
69
+ cp ./scripts/run-rush-pnpm.sh /usr/local/bin/run-rush-pnpm.sh
70
+ chmod +rx /usr/local/bin/run-rush-pnpm.sh
71
+
66
72
67
73
if command -v sudo > /dev/null 2>&1 ; then
68
74
if [ " root" != " $_REMOTE_USER " ]; then
@@ -85,7 +91,14 @@ if command -v sudo >/dev/null 2>&1; then
85
91
if [ " ${ALIAS_NPX} " = " true" ]; then
86
92
sudo -u ${_REMOTE_USER} bash -c " echo 'alias npx=/usr/local/bin/run-npx.sh' >> ~/.bashrc"
87
93
sudo -u ${_REMOTE_USER} bash -c " echo 'alias npx=/usr/local/bin/run-npx.sh' >> ~/.zshrc"
88
- fi
94
+ fi
95
+ if [ " ${ALIAS_RUSH} " = " true" ]; then
96
+ sudo -u ${_REMOTE_USER} bash -c " echo 'alias rush=/usr/local/bin/run-rush.sh' >> ~/.bashrc"
97
+ sudo -u ${_REMOTE_USER} bash -c " echo 'alias rush=/usr/local/bin/run-rush.sh' >> ~/.zshrc"
98
+
99
+ sudo -u ${_REMOTE_USER} bash -c " echo 'alias rush-pnpm=/usr/local/bin/run-rush-pnpm.sh' >> ~/.bashrc"
100
+ sudo -u ${_REMOTE_USER} bash -c " echo 'alias rush-pnpm=/usr/local/bin/run-rush-pnpm.sh' >> ~/.zshrc"
101
+ fi
89
102
sudo -u ${_REMOTE_USER} bash -c " /tmp/install-provider.sh ${USENET6} "
90
103
rm /tmp/install-provider.sh
91
104
exit 0
@@ -117,6 +130,14 @@ if [ "${ALIAS_NPX}" = "true" ]; then
117
130
sudo -u ${_REMOTE_USER} bash -c " echo ' alias npx=/usr/local/bin/run-npx.sh' >> /etc/zsh/zshrc || true
118
131
fi
119
132
133
+ if [ " ${ALIAS_RUSH} " = " true" ]; then
134
+ sudo -u ${_REMOTE_USER} bash -c " echo 'alias rush=/usr/local/bin/run-rush.sh' >> /etc/bash.bashrc || true
135
+ sudo -u ${_REMOTE_USER} bash -c " echo ' alias rush=/usr/local/bin/run-rush.sh' >> /etc/zsh/zshrc || true
136
+
137
+ sudo -u ${_REMOTE_USER} bash -c " echo 'alias rush-pnpm=/usr/local/bin/run-rush-pnpm.sh' >> /etc/bash.bashrc || true
138
+ sudo -u ${_REMOTE_USER} bash -c " echo ' alias rush-pnpm=/usr/local/bin/run-rush-pnpm.sh' >> /etc/zsh/zshrc || true
139
+ fi
140
+
120
141
rm /tmp/install-provider.sh
121
142
122
143
exit 0
0 commit comments