Skip to content

Commit

Permalink
Update Rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
infertux committed Jul 25, 2024
1 parent 839dbb3 commit 2458cfd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 29 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ You can use this link to always point to the latest release: https://raw.githubu

## Usage

- `wget https://raw.githubusercontent.com/infertux/ruby-bootstrap/master/bootstrap_ruby_stable.sh`
- `chmod +x bootstrap_ruby_stable.sh`
- `sudo ./bootstrap_ruby_stable.sh`
`wget https://raw.githubusercontent.com/infertux/ruby-bootstrap/master/bootstrap_ruby_stable.sh && bash ./bootstrap_ruby_stable.sh`

## License

Expand Down
17 changes: 9 additions & 8 deletions bootstrap_ruby_3.2.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
#!/bin/bash -e
#!/bin/bash

# Download, configure and install Ruby and Bundler
# https://github.com/infertux/ruby-bootstrap

set -euo pipefail

VERSION="3.2.4"
SHA256="c72b3c5c30482dca18b0f868c9075f3f47d8168eaf626d4e682ce5b59c858692"

[ "$1" = "--force" ] && FORCE=1 || FORCE=""

set -u
[ "${1:-}" = "--force" ] && FORCE=1 || FORCE=""

[ $UID -eq 0 ] || { echo "Root required"; exit 1; }

# Install Ruby and Bundler if they are missing or the force flag is set
if [ -n "$FORCE" ] || ! command -v ruby >/dev/null; then
# wget: to fetch Ruby and pretty useful anyway
# gcc & make: to compile Ruby
# various libs: libraries for Ruby
if [ -n "$FORCE" ] || ! command -v ruby > /dev/null; then
# Dependency list:
# - wget: to fetch Ruby and pretty useful anyway
# - gcc & make: to compile Ruby
# - various libs: libraries for Ruby

if [ -f /etc/debian_version ]; then
apt-get update
Expand Down
19 changes: 10 additions & 9 deletions bootstrap_ruby_3.3.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
#!/bin/bash -e
#!/bin/bash

# Download, configure and install Ruby and Bundler
# https://github.com/infertux/ruby-bootstrap

VERSION="3.3.1"
SHA256="8dc2af2802cc700cd182d5430726388ccf885b3f0a14fcd6a0f21ff249c9aa99"
set -euo pipefail

[ "$1" = "--force" ] && FORCE=1 || FORCE=""
VERSION="3.3.4"
SHA256="fe6a30f97d54e029768f2ddf4923699c416cdbc3a6e96db3e2d5716c7db96a34"

set -u
[ "${1:-}" = "--force" ] && FORCE=1 || FORCE=""

[ $UID -eq 0 ] || { echo "Root required"; exit 1; }

# Install Ruby and Bundler if they are missing or the force flag is set
if [ -n "$FORCE" ] || ! command -v ruby >/dev/null; then
# wget: to fetch Ruby and pretty useful anyway
# gcc & make: to compile Ruby
# various libs: libraries for Ruby
if [ -n "$FORCE" ] || ! command -v ruby > /dev/null; then
# Dependency list:
# - wget: to fetch Ruby and pretty useful anyway
# - gcc & make: to compile Ruby
# - various libs: libraries for Ruby

if [ -f /etc/debian_version ]; then
apt-get update
Expand Down
19 changes: 10 additions & 9 deletions bootstrap_ruby_stable.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
#!/bin/bash -e
#!/bin/bash

# Download, configure and install Ruby and Bundler
# https://github.com/infertux/ruby-bootstrap

VERSION="3.3.1"
SHA256="8dc2af2802cc700cd182d5430726388ccf885b3f0a14fcd6a0f21ff249c9aa99"
set -euo pipefail

[ "$1" = "--force" ] && FORCE=1 || FORCE=""
VERSION="3.3.4"
SHA256="fe6a30f97d54e029768f2ddf4923699c416cdbc3a6e96db3e2d5716c7db96a34"

set -u
[ "${1:-}" = "--force" ] && FORCE=1 || FORCE=""

[ $UID -eq 0 ] || { echo "Root required"; exit 1; }

# Install Ruby and Bundler if they are missing or the force flag is set
if [ -n "$FORCE" ] || ! command -v ruby >/dev/null; then
# wget: to fetch Ruby and pretty useful anyway
# gcc & make: to compile Ruby
# various libs: libraries for Ruby
if [ -n "$FORCE" ] || ! command -v ruby > /dev/null; then
# Dependency list:
# - wget: to fetch Ruby and pretty useful anyway
# - gcc & make: to compile Ruby
# - various libs: libraries for Ruby

if [ -f /etc/debian_version ]; then
apt-get update
Expand Down

0 comments on commit 2458cfd

Please sign in to comment.