Apply shellcheck

This commit is contained in:
Benoit 2024-10-11 18:38:45 +09:00
parent ce5f1f40ac
commit 3436125897
Signed by: Benoit
SSH key fingerprint: SHA256:kFsX94Kq6z/6CY0dX+7/FpAeJC0QlMhJVY+B7NYrOmA
2 changed files with 41 additions and 25 deletions

View file

@ -3,16 +3,19 @@ set -euox pipefail
cd /home/mastodon
git clone https://github.com/mastodon/mastodon.git live && cd live
git checkout $(git tag -l | grep '^v[0-9.]*$' | sort -V | tail -n 1)
git checkout "$(git tag -l | grep '^v[0-9.]*$' | sort -V | tail -n 1)"
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
{
# shellcheck disable=SC2016
echo 'export PATH="$HOME/.rbenv/bin:$PATH"'
# shellcheck disable=SC2016
echo 'eval "$(rbenv init -)"'
} | tee -a ~/.bashrc ~/.profile
# shellcheck disable=SC1090
source ~/.profile
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install
bundle config deployment 'true'
bundle config without 'development test'
bundle install -j$(getconf _NPROCESSORS_ONLN)
yarn install --yes
bundle install -j"$(getconf _NPROCESSORS_ONLN)"
yarn install