||: is short for || true
This commit is contained in:
parent
bd3dafef03
commit
29b4703b20
2 changed files with 9 additions and 9 deletions
8
arch.sh
8
arch.sh
|
@ -145,7 +145,7 @@ main() {
|
|||
# === Rust ==
|
||||
# Add Cargo packages from Rust
|
||||
mkdir -p "$HOME"/.cargo/bin
|
||||
fish -c "fish_add_path $HOME/.cargo/bin | true"
|
||||
fish -c "fish_add_path $HOME/.cargo/bin ||:"
|
||||
# Add cargo packages
|
||||
cargo install cargo-update cargo-cache
|
||||
|
||||
|
@ -363,7 +363,7 @@ main() {
|
|||
# === Python ==
|
||||
# Add PIP packages from Python to the path
|
||||
mkdir -p "$HOME"/.local/bin
|
||||
fish -c "fish_add_path /home/anri/.local/bin | true"
|
||||
fish -c "fish_add_path /home/anri/.local/bin ||:"
|
||||
|
||||
# === OCaml ==
|
||||
# Init Opam and install stuff
|
||||
|
@ -374,14 +374,14 @@ main() {
|
|||
wget -q ${repo}/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat
|
||||
# Add Opam packages from OCaml
|
||||
mkdir -p "$HOME"/.opam/default/bin
|
||||
fish -c "fish_add_path /home/anri/.opam/default/bin | true"
|
||||
fish -c "fish_add_path /home/anri/.opam/default/bin ||:"
|
||||
|
||||
# === Clang ==
|
||||
wget -q ${repo}/dotfiles/.clang-format -O "$HOME"/.clang-format
|
||||
|
||||
# === Perl ==
|
||||
# Add perl packages to path
|
||||
fish -c "fish_add_path /usr/bin/vendor_perl | true"
|
||||
fish -c "fish_add_path /usr/bin/vendor_perl ||:"
|
||||
|
||||
# === Discord ==
|
||||
# Skip update
|
||||
|
|
10
arch_wsl.sh
10
arch_wsl.sh
|
@ -73,7 +73,7 @@ main() {
|
|||
# === Rust ==
|
||||
# Add Cargo packages from Rust
|
||||
mkdir -p "$HOME"/.cargo/bin
|
||||
fish -c "fish_add_path $HOME/.cargo/bin | true"
|
||||
fish -c "fish_add_path $HOME/.cargo/bin ||:"
|
||||
# Add cargo packages
|
||||
cargo install cargo-update cargo-cache
|
||||
|
||||
|
@ -165,7 +165,7 @@ main() {
|
|||
# === Python ==
|
||||
# Add PIP packages from Python
|
||||
mkdir -p "$HOME"/.local/bin
|
||||
fish -c "fish_add_path $HOME/.local/bin | true"
|
||||
fish -c "fish_add_path $HOME/.local/bin ||:"
|
||||
|
||||
# === OCaml ==
|
||||
# Init Opam and install stuff
|
||||
|
@ -176,7 +176,7 @@ main() {
|
|||
wget -q ${repo}/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat
|
||||
# Add Opam packages from OCaml
|
||||
mkdir -p "$HOME"/.opam/default/bin
|
||||
fish -c "fish_add_path $HOME/.opam/default/bin | true"
|
||||
fish -c "fish_add_path $HOME/.opam/default/bin ||:"
|
||||
# Fix dlllwt_unix_stubs.so shared object file
|
||||
fish -c "set -Ux CAML_LD_LIBRARY_PATH $(opam var stublibs)"
|
||||
|
||||
|
@ -192,7 +192,7 @@ main() {
|
|||
|
||||
# === Perl ==
|
||||
# Add perl packages to path
|
||||
fish -c "fish_add_path /usr/bin/vendor_perl | true"
|
||||
fish -c "fish_add_path /usr/bin/vendor_perl ||:"
|
||||
|
||||
# === Emacs ==
|
||||
# mkdir -p "$HOME"/.emacs.d
|
||||
|
@ -213,7 +213,7 @@ main() {
|
|||
sudo npm i -g npm@latest
|
||||
|
||||
# === Clear useless packages
|
||||
pacman -Qqtd | sudo pacman --noconfirm -Rsn subsystemctl - 2> /dev/null || true
|
||||
pacman -Qqtd | sudo pacman --noconfirm -Rsn subsystemctl - 2> /dev/null ||:
|
||||
|
||||
echo -e "\nInstallation terminée !\nIl faut redémarrer WSL (dans Powershell = wsl --shutdown)."
|
||||
echo -e "---\nPense bien à paramétrer ton terminal, exemple avec Windows Terminal :"
|
||||
|
|
Loading…
Reference in a new issue