aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 836b464..daed887 100755
--- a/install.sh
+++ b/install.sh
@@ -1,4 +1,8 @@
#!/bin/sh
-makepkg
-sudo pacman -U dotfiles-installer*.pkg.tar* \ No newline at end of file
+if ! [ rustc --version > /dev/null 2>&1 ]; then
+ sudo pacman -S rustup || exit $?
+ rustup default stable || exit $?
+fi
+makepkg -f || exit $?
+sudo pacman -U dotfiles-installer*.pkg.tar*