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
542 B
18 lines
542 B
#!/bin/bash
|
|
|
|
set -Eeuo pipefail
|
|
|
|
if [[ -d /opt/miaou-bash ]]; then
|
|
local_release=$(cat /opt/miaou-bash/.semver_git_tag)
|
|
fi
|
|
|
|
echo -n "miaou-bash: collecting latest release from server url ... "
|
|
remote_release=$(wget_semver artcode miaou/miaou-bash)
|
|
echo -n "$remote_release"
|
|
|
|
if [[ $local_release != $remote_release ]]; then
|
|
echo " , upgrading from <$local_release> to <$remote_release> ..."
|
|
curl --no-progress-meter https://git.artcode.re/miaou/miaou-bash/raw/branch/main/install.sh | sudo bash -s
|
|
else
|
|
echo " up-to-date!"
|
|
fi
|