File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed
ansible/roles/dev-desktop/files/scripts Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
echo " # Available scripts for managing your Rust checkouts"
4
- echo " init .sh | first time setup, you should only have to execute this once on a new machine"
4
+ echo " setup_rustup .sh | first time setup, you should only have to execute this once on a new machine"
5
5
echo " status.sh | list the branches and git status of all copies of the Rust repo"
6
6
echo " new_worktree.sh | creates a worktree (shallow copy of the main git checkout of Rust, sharing the .git folder)"
7
7
echo " detach_merged_prs.sh | invokes \" git pull --fast-forward-only\" on all worktrees and detaches those that are equal to the \" master\" branch"
Original file line number Diff line number Diff line change 5
5
set -euo pipefail
6
6
IFS=$' \n\t '
7
7
8
- # Check if rustup is already installed and exit if that's the case.
9
- if command -v rustup & > /dev/null; then
10
- rustup --version
11
- exit 0
12
- fi
13
-
14
8
init_git.py
15
-
16
- echo " Installing rustup..."
17
- curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
9
+ setup_rustup.sh
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Enable strict mode for Bash
4
+ # http://redsymbol.net/articles/unofficial-bash-strict-mode/
5
+ set -euo pipefail
6
+ IFS=$' \n\t '
7
+
8
+ # Check if rustup is already installed and exit if that's the case.
9
+ if command -v rustup & > /dev/null; then
10
+ rustup --version
11
+ exit 0
12
+ fi
13
+
14
+ echo " Installing rustup..."
15
+ curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
You can’t perform that action at this time.
0 commit comments