File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 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" : []
Original file line number Diff line number Diff line change 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
523M=$( pwd)
624
You can’t perform that action at this time.
0 commit comments