MIAOU-BASH is a collection of settings and helpers for leveraging BASH. Developer-friendly, it may be used as solo package with or without the miaou project.
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.

18 lines
532 B

8 months ago
  1. #!/bin/bash
  2. set -Eeuo pipefail
  3. if [[ -d /opt/miaou-bash ]]; then
  4. local_release=$(cat /opt/miaou-bash/.semver_git_tag)
  5. fi
  6. echo -n "miaou-bash: collecting latest release from server url ... "
  7. remote_release=$(wget_semver artcode miaou/miaou-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/miaou/miaou-bash/raw/branch/main/install.sh | sudo bash -s -- --full
  12. else
  13. echo " up-to-date!"
  14. fi