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
19 lines
574 B
#!/bin/bash
|
|
|
|
# set -Eeuo pipefail
|
|
|
|
if [[ -d /opt/debian-bash ]]; then
|
|
local_release=$(cat /opt/debian-bash/.semver_git_tag)
|
|
fi
|
|
|
|
echo -n "debian-bash: collecting latest release from server url ... "
|
|
remote_release=$(wget_semver artcode pvincent/debian-bash)
|
|
echo -n "$remote_release"
|
|
|
|
if [[ $local_release != $remote_release ]]; then
|
|
echo " , upgrading from <$local_release> to <$remote_release> ..."
|
|
curl https://git.artcode.re/pvincent/debian-bash/raw/branch/master/install.sh | sudo bash -s -- --host
|
|
else
|
|
pushd /opt/debian-bash
|
|
./install.sh --host
|
|
fi
|