From f668e009263cdafdebae3607719ae19bfd9dc249 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Sun, 21 Aug 2022 18:24:35 -0400 Subject: begin configuration of new machine --- modules/30-rust/install.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/30-rust/install.sh (limited to 'modules/30-rust') diff --git a/modules/30-rust/install.sh b/modules/30-rust/install.sh new file mode 100644 index 0000000..76df8df --- /dev/null +++ b/modules/30-rust/install.sh @@ -0,0 +1,16 @@ +_script="$(realpath ${BASH_SOURCE[0]})" +_scriptname="$(basename $_script)" +_scriptdir="$(dirname $_script)" +_modulename="$(basename $_scriptdir)" +DOT_MODULE_NAME="rustup" + +function preinstall() { + if ! [[ -x "$(command -v rustup)" ]]; then + PACKAGES+=("rustup") + fi +} + +function install() { + log info "installing stable rust" + rustup install stable +} -- cgit v1.2.3