File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
.devcontainer/scripts/usr/local/bin Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 55
55
if [ " $( command -v mojo) " ]; then
56
56
# Append the user's modular bin dir to PATH
57
57
if ! grep -q " user's modular bin dir" " $HOME /.bashrc" ; then
58
+ echo MODULAR_HOME=\"\$ HOME/.modular\" > /tmp/magicenv
58
59
(curl -ssL https://magic.modular.com || cat /var/tmp/magicenv.bak) \
59
- | grep ' ^MODULAR_HOME\|^ BIN_DIR' | tee /tmp/magicenv > /dev/null
60
+ | grep ' ^BIN_DIR' | tee -a /tmp/magicenv > /dev/null
60
61
. /tmp/magicenv
61
62
mkdir -p " ${BIN_DIR} "
62
63
sed -i ' s/\$HOME/\\$HOME/g' /tmp/magicenv
@@ -65,8 +66,9 @@ if [ "$(command -v mojo)" ]; then
65
66
rm /tmp/magicenv
66
67
fi
67
68
if ! grep -q " user's modular bin dir" " $HOME /.zshrc" ; then
69
+ echo MODULAR_HOME=\"\$ HOME/.modular\" > /tmp/magicenv
68
70
(curl -ssL https://magic.modular.com || cat /var/tmp/magicenv.bak) \
69
- | grep ' ^MODULAR_HOME\|^ BIN_DIR' | tee /tmp/magicenv > /dev/null
71
+ | grep ' ^BIN_DIR' | tee -a /tmp/magicenv > /dev/null
70
72
. /tmp/magicenv
71
73
mkdir -p " ${BIN_DIR} "
72
74
sed -i ' s/\$HOME/\\$HOME/g' /tmp/magicenv
You can’t perform that action at this time.
0 commit comments