Skip to content

Commit a2f177c

Browse files
update version
1 parent ff8ea40 commit a2f177c

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "EmonScripts",
3-
"version" : "1.9.2",
3+
"version" : "1.9.3",
44
"location" : "/opt/openenergymonitor",
55
"branches_available": ["stable","master"],
66
"requires": []

other/stable_release.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
#!/bin/bash
22

33
# sudo apt-get install jq gh
4+
# Requires GitHub authentication: set GH_TOKEN environment variable
5+
#
6+
# Setup instructions:
7+
# 1. Go to GitHub -> Settings -> Developer settings -> Personal access tokens -> Tokens (classic)
8+
# 2. Click 'Generate new token (classic)'
9+
# 3. Give it a name, set expiry, and check the 'repo' scope
10+
# 4. Copy the token and add it to your shell profile:
11+
# echo 'export GH_TOKEN=your_token_here' >> ~/.bashrc
12+
# source ~/.bashrc
13+
14+
# Check GitHub CLI authentication
15+
if ! gh auth status &>/dev/null; then
16+
if [ -z "$GH_TOKEN" ]; then
17+
echo "Error: GitHub CLI is not authenticated."
18+
echo "Please run 'gh auth login' or set the GH_TOKEN environment variable."
19+
exit 1
20+
fi
21+
fi
422

523
M=$(pwd)
624

0 commit comments

Comments
 (0)