2 Commits

View File

@@ -3,7 +3,7 @@
# Program name
PROGRAM_NAME="Octozipo"
PROGRAM_CODE="octozipo"
PROGRAM_VERSION="2.2.4"
PROGRAM_VERSION="2.2.6"
PROGRAM_V="2.2"
# PROGRAM_URL="https://git.vdm.dev/octoleo/${PROGRAM_CODE}"
@@ -664,7 +664,7 @@ function getGitCommitComment() {
message="Update"
# If tag already exist
elif git rev-parse --is-inside-work-tree > /dev/null 2>&1 && git tag -l "$current_version" | grep -q "^$current_version$"; then
message="Update on $current_version (beta for next version)\n\nHere's an update on the current version, which includes changes towards the next release still in beta."
message="Update on $current_version (changes towards the next release)\n\nHere's an update on the current version, which includes changes towards the next release still in development."
# if file path exist and the tag was never set before
elif [ -f "${file_path}" ]; then
# Use grep to find the line number of the first heading/version
@@ -678,7 +678,7 @@ function getGitCommitComment() {
# check if this is the same version as the current version
if [ "$current_version" = "$version" ]; then
message="Stable release of ${current_version}\n\n${formatted_lines}"
message="Release of ${current_version}\n\n${formatted_lines}"
fi
fi
@@ -934,7 +934,7 @@ function runUpdate() {
sudo mv "/usr/local/bin/${PROGRAM_CODE}" "/usr/local/bin/${PROGRAM_CODE}.bak"
fi
# pull the latest version. Master is always the latest
if sudo curl --fail -L "https://git.vdm.dev/api/v1/repos/octoleo/${PROGRAM_CODE}/raw/src/${PROGRAM_CODE}?ref=${branch:-master}&access_token=${VDM_ACCESS_TOKEN}" -o "/usr/local/bin/${PROGRAM_CODE}" 2>/dev/null; then
if sudo curl --fail -H "Authorization: token ${VDM_ACCESS_TOKEN}" -L "https://git.vdm.dev/api/v1/repos/octoleo/${PROGRAM_CODE}/raw/src/${PROGRAM_CODE}?ref=${branch:-master}" -o "/usr/local/bin/${PROGRAM_CODE}" 2>/dev/null; then
# give success message
_echo "[success] Update was successful."
# do we have a backup