Skip to content

Commit 3328d52

Browse files
Radeityimbajin
andauthored
fix: typo errors in start-computer.sh (#238)
Co-authored-by: imbajin <jin@apache.org>
1 parent fa37fc4 commit 3328d52

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

computer-dist/src/assembly/static/bin/start-computer.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,22 +76,22 @@ parse_opts() {
7676

7777
case "$1" in
7878
-c|--conf)
79-
check_empty "conf file not be empty" $2
80-
check_file_readable "file $2 not be read permission" $2
79+
check_empty "conf file can't be empty" $2
80+
check_file_readable "file $2 doesn't have read permission" $2
8181
COMPUTER_CONF_PATH=$2
8282
shift 2 ;;
8383
-l|--log4)
84-
check_empty "log conf file not be empty" $2
85-
check_file_readable "file $2 not be read permission" $2
84+
check_empty "log conf file can't be empty" $2
85+
check_file_readable "file $2 doesn't have read permission" $2
8686
LOG4J_CONF_PATH=$2
8787
shift 2 ;;
8888
-a|--algorithm)
89-
check_empty "algorithm jar file not be empty" $2
90-
check_file_readable "file $2 not be read permission" $2
89+
check_empty "algorithm jar file can't be empty" $2
90+
check_file_readable "file $2 doesn't have read permission" $2
9191
JAR_FILE_PATH=$2
9292
shift 2 ;;
9393
-d|--drive)
94-
check_empty "drive not be empty" $1
94+
check_empty "driver can't be empty" $1
9595
case "$2" in
9696
${K8S_DRIVE})
9797
DRIVE=${K8S_DRIVE}
@@ -103,7 +103,7 @@ parse_opts() {
103103
DRIVE=${LOCAL_DRIVE}
104104
;;
105105
*)
106-
echo "unknown drive %2, muse be k8s|yarn|local"
106+
echo "unknown drive %2, must be k8s|yarn|local"
107107
exit 1
108108
esac
109109
shift 2;;
@@ -116,7 +116,7 @@ parse_opts() {
116116
ROLE=${ROLE_WORKER}
117117
;;
118118
*)
119-
echo "unknown role %2, muse be master|worker"
119+
echo "unknown role %2, must be master|worker"
120120
exit 1
121121
esac
122122
shift 2;;
@@ -129,21 +129,21 @@ parse_opts $*
129129

130130
if [ "${COMPUTER_CONF_PATH}" = "" ]; then
131131
if [ "$DRIVE" = "$K8S_DRIVE" ]; then
132-
echo "conf file missed";
132+
echo "conf file is missing";
133133
usage;
134134
exit 1;
135135
fi
136136
COMPUTER_CONF_PATH=${CONF_DIR}/computer.properties
137137
fi
138138

139139
if [ "${DRIVE}" = "" ]; then
140-
echo "drive is missed";
140+
echo "drive is missing";
141141
usage;
142142
exit 1;
143143
fi
144144

145145
if [ "${ROLE}" = "" ]; then
146-
echo "role is missed";
146+
echo "role is missing";
147147
usage;
148148
exit 1;
149149
fi

0 commit comments

Comments
 (0)