Update URL to GitHub raw content and bump version to 2.0.3
Replaced API URLs with GitHub raw content URLs for installation and updates to ensure reliability and consistency. Incremented the program version from 2.0.2 to 2.0.3 to reflect the changes.
This commit is contained in:
@ -8,7 +8,7 @@ With this script we can easily package multiple power classes in an automated wa
|
|||||||
---
|
---
|
||||||
# Install
|
# Install
|
||||||
```shell
|
```shell
|
||||||
$ sudo curl -L "https://git.vdm.dev/api/v1/repos/octoleo/octopower/raw/src/octopower" -o /usr/local/bin/octopower
|
$ sudo curl -L "https://raw.githubusercontent.com/octoleo/octopower/refs/heads/master/src/octopower" -o /usr/local/bin/octopower
|
||||||
$ sudo chmod +x /usr/local/bin/octopower
|
$ sudo chmod +x /usr/local/bin/octopower
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Program name
|
# Program name
|
||||||
PROGRAM_NAME="OctoPower"
|
PROGRAM_NAME="OctoPower"
|
||||||
PROGRAM_CODE="octopower"
|
PROGRAM_CODE="octopower"
|
||||||
PROGRAM_VERSION="2.0.2"
|
PROGRAM_VERSION="2.0.3"
|
||||||
PROGRAM_V="2.0"
|
PROGRAM_V="2.0"
|
||||||
PROGRAM_URL="https://git.vdm.dev/octoleo/${PROGRAM_CODE}"
|
PROGRAM_URL="https://git.vdm.dev/octoleo/${PROGRAM_CODE}"
|
||||||
|
|
||||||
@ -1785,7 +1785,7 @@ command -v sed >/dev/null 2>&1 || {
|
|||||||
sudo mv "/usr/local/bin/${PROGRAM_CODE}" "/usr/local/bin/${PROGRAM_CODE}.bak"
|
sudo mv "/usr/local/bin/${PROGRAM_CODE}" "/usr/local/bin/${PROGRAM_CODE}.bak"
|
||||||
fi
|
fi
|
||||||
# pull the latest version. Master is always the latest
|
# 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}" -o "/usr/local/bin/${PROGRAM_CODE}" 2>/dev/null; then
|
if sudo curl --fail -L "https://raw.githubusercontent.com/octoleo/${PROGRAM_CODE}/refs/heads/${branch:-master}/src/${PROGRAM_CODE}" -o "/usr/local/bin/${PROGRAM_CODE}" 2>/dev/null; then
|
||||||
# give success message
|
# give success message
|
||||||
echo "[success] Update was successful."
|
echo "[success] Update was successful."
|
||||||
# do we have a backup
|
# do we have a backup
|
||||||
|
Reference in New Issue
Block a user