diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2023-07-20 22:39:07 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2023-07-20 22:39:07 +0100 |
| commit | ffa08735aee2d69e17bce5c29a7ef96cc7e2233f (patch) | |
| tree | 5a349a5e1bdb2abcf55098259a14f7055bb197ff | |
| parent | c3a55debe9e4194f83164d412293f27b797627af (diff) | |
Update install.sh
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | PKGBUILD | 2 | ||||
| -rwxr-xr-x | install.sh | 8 |
3 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,3 @@ /target -*.pkg.tar.zst +*.pkg.tar.* /pkg @@ -5,7 +5,7 @@ makedepends=('rust' 'cargo') arch=('any') build() { - cargo build --frozen --release + cargo build --release } package() { @@ -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* |
