Fixed typo cuasing path shell source to not be reloaded in justfile.
This commit is contained in:
parent
fa8bc623c8
commit
943ad39016
1 changed files with 7 additions and 13 deletions
20
justfile
20
justfile
|
@ -6,37 +6,31 @@ install-nix:
|
||||||
|
|
||||||
# Check if Rust is installed, if not install it
|
# Check if Rust is installed, if not install it
|
||||||
install-rust:
|
install-rust:
|
||||||
@if ! command -v rustup &> /dev/null; then \
|
@if ! command -v rustc &> /dev/null; then \
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh; \
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh; \
|
||||||
. {{scripts_dir}}/update_path.sh; \
|
. {{scripts_dir}}/update_source.sh; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if wasm32-unknown-unknown target is installed, if not install it
|
# Check if wasm32-unknown-unknown target is installed, if not install it
|
||||||
install-wasm-target:
|
install-wasm-target:
|
||||||
@if ! rustup target list --installed | grep -q "wasm32-unknown-unknown"; then \
|
@if ! rustup target list --installed | grep -q "wasm32-unknown-unknown"; then \
|
||||||
rustup target add wasm32-unknown-unknown; \
|
rustup target add wasm32-unknown-unknown; \
|
||||||
. {{scripts_dir}}/update_path.sh; \
|
. {{scripts_dir}}/update_source.sh; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if OpenSSL 1.1 is installed
|
# Check if OpenSSL 1.1 is installed
|
||||||
install-openssl:
|
install-openssl:
|
||||||
@if ! (command -v openssl &> /dev/null && openssl version | grep -q "OpenSSL 1.1"); then \
|
@if ! (command -v openssl &> /dev/null && openssl version | grep -q "OpenSSL 1.1"); then \
|
||||||
. {{scripts_dir}}/install_openssl.sh; \
|
. {{scripts_dir}}/install_openssl.sh; \
|
||||||
. {{scripts_dir}}/update_path.sh; \
|
. {{scripts_dir}}/update_source.sh; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if cosmo is installed, if not install it
|
# Check if cosmo is installed, if not install it
|
||||||
install-cosmo:
|
install-cosmo:
|
||||||
@if ! command -v cosmo &> /dev/null; then \
|
@if ! command -v cosmo &> /dev/null; then \
|
||||||
bash -c "$(curl -fsSL https://cosmonic.sh/install.sh)"; \
|
bash -c "$(curl -fsSL https://cosmonic.sh/install.sh)"; \
|
||||||
current_shell=$$(basename "$$SHELL"); \
|
. {{scripts_dir}}/update_path.sh; \
|
||||||
if [ "$$current_shell" == "bash" ]; then \
|
. {{scripts_dir}}/update_source.sh; \
|
||||||
echo "export PATH=\"/Users/nexus/.cosmo/bin:\$$${PATH}\"" >> "${HOME}/.bashrc" && source "${HOME}/.bashrc"; \
|
fi
|
||||||
elif [ "$$current_shell" == "zsh" ]; then \
|
|
||||||
echo "export PATH=\"/Users/nexus/.cosmo/bin:\$$${PATH}\"" >> "${HOME}/.zshrc" && source "${HOME}/.zshrc"; \
|
|
||||||
else \
|
|
||||||
echo "Unsupported shell: $$current_shell"; \
|
|
||||||
fi; \
|
|
||||||
fi; \
|
|
||||||
|
|
||||||
all: install-nix install-rust install-wasm-target install-openssl install-cosmo
|
all: install-nix install-rust install-wasm-target install-openssl install-cosmo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue