Sha256: bc178dc745c5bf1d04365c8eb0d45c51ff27908259229065d71cbf9f0289e2b9
Contents?: true
Size: 858 Bytes
Versions: 550
Compression:
Stored size: 858 Bytes
Contents
#!/bin/bash --login if [[ -d '/opt/pwn' ]]; then pwn_root='/opt/pwn' else pwn_root="${PWN_ROOT}" fi ls pkg/*.gem | while read previous_gems; do rvmsudo rm $previous_gems done old_ruby_version=`cat ${pwn_root}/.ruby-version` # Default Strategy is to merge codebase rvmsudo git config pull.rebase false rvmsudo git pull new_ruby_version=`cat ${pwn_root}/.ruby-version` rvmsudo gem update --system if [[ $old_ruby_version == $new_ruby_version ]]; then export rvmsudo_secure_path=1 rvmsudo /bin/bash --login -c "cd ${pwn_root} && ./reinstall_pwn_gemset.sh" cd /tmp && cd $pwn_root rvmsudo rake rvmsudo rake install rvmsudo rake rerdoc rvmsudo gem rdoc --rdoc --ri --overwrite -V pwn echo "Invoking bundle-audit Gemfile Scanner..." rvmsudo bundle-audit else cd $pwn_root && ./upgrade_ruby.sh $new_ruby_version $old_ruby_version fi
Version data entries
550 entries across 550 versions & 1 rubygems