GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: func called before definition (#1134) · abi/opencode@5c9d191

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • install
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎install‎

Copy file name to clipboardExpand all lines: install
+14-14Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ else
5252
INSTALL_DIR="$HOME/.opencode/bin"
5353
fi
5454

55+
print_message() {
56+
local level=$1
57+
local message=$2
58+
local color=""
59+
60+
case $level in
61+
info) color="${GREEN}" ;;
62+
warning) color="${YELLOW}" ;;
63+
error) color="${RED}" ;;
64+
esac
65+
66+
echo -e "${color}${message}${NC}"
67+
}
68+
5569
mkdir -p "$INSTALL_DIR"
5670

5771
print_message info "Installing to: ${YELLOW}$INSTALL_DIR${GREEN}"
@@ -69,20 +83,6 @@ else
6983
specific_version=$requested_version
7084
fi
7185

72-
print_message() {
73-
local level=$1
74-
local message=$2
75-
local color=""
76-
77-
case $level in
78-
info) color="${GREEN}" ;;
79-
warning) color="${YELLOW}" ;;
80-
error) color="${RED}" ;;
81-
esac
82-
83-
echo -e "${color}${message}${NC}"
84-
}
85-
8686
check_version() {
8787
if command -v opencode >/dev/null 2>&1; then
8888
opencode_path=$(which opencode)

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.