File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
.devcontainer/scripts/usr/local/bin Expand file tree Collapse file tree 1 file changed +4
-4
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
- curl -ssL https://magic.modular.com | grep ' ^MODULAR_HOME\|^BIN_DIR ' \
59
- > /tmp/magicenv
58
+ ( curl -ssL https://magic.modular.com || cat /var/tmp/magicenv.bak) \
59
+ | grep ' ^MODULAR_HOME\|^BIN_DIR ' | tee /tmp/magicenv > /dev/null
60
60
. /tmp/magicenv
61
61
mkdir -p " ${BIN_DIR} "
62
62
sed -i ' s/\$HOME/\\$HOME/g' /tmp/magicenv
@@ -65,8 +65,8 @@ if [ "$(command -v mojo)" ]; then
65
65
rm /tmp/magicenv
66
66
fi
67
67
if ! grep -q " user's modular bin dir" " $HOME /.zshrc" ; then
68
- curl -ssL https://magic.modular.com | grep ' ^MODULAR_HOME\|^BIN_DIR ' \
69
- > /tmp/magicenv
68
+ ( curl -ssL https://magic.modular.com || cat /var/tmp/magicenv.bak) \
69
+ | grep ' ^MODULAR_HOME\|^BIN_DIR ' | tee /tmp/magicenv > /dev/null
70
70
. /tmp/magicenv
71
71
mkdir -p " ${BIN_DIR} "
72
72
sed -i ' s/\$HOME/\\$HOME/g' /tmp/magicenv
You can’t perform that action at this time.
0 commit comments