You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
574 B

3 years ago
3 years ago
  1. #!/bin/bash
  2. # set -Eeuo pipefail
  3. if [[ -d /opt/debian-bash ]]; then
  4. local_release=$(cat /opt/debian-bash/.semver_git_tag)
  5. fi
  6. echo -n "debian-bash: collecting latest release from server url ... "
  7. remote_release=$(wget_semver artcode pvincent/debian-bash)
  8. echo -n "$remote_release"
  9. if [[ $local_release != $remote_release ]]; then
  10. echo " , upgrading from <$local_release> to <$remote_release> ..."
  11. curl https://git.artcode.re/pvincent/debian-bash/raw/branch/master/install.sh | sudo bash -s -- --host
  12. else
  13. pushd /opt/debian-bash
  14. ./install.sh --host
  15. fi