Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 005da7e

Browse files
committed
mac/linux 安装时检查java
1 parent 066096e commit 005da7e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎install.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616

1717
set -e
1818

19+
# check require
20+
type java >/dev/null 2>&1 || {
21+
echo >&2 "`tput setaf 1`ERROR: This script require java but it's not installed. `tput sgr0`"
22+
echo >&2
23+
echo >&2 "Please install java first."
24+
echo >&2 "`tput setaf 4`https://www.java.com`tput sgr0`"
25+
exit 1
26+
}
27+
1928
# Always download the latest version
2029
# For more information about the cg.jar, please vist the following page:
2130
# https://github.com/excel-code-generator/code-generator

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /