Skip to content

Commit e0b451b

Browse files
committed
update tool script batchinstall.sh
1 parent 8be4450 commit e0b451b

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

env_init/batchinstall.sh

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,21 +157,34 @@ fi
157157
unset SOFT
158158
while read -r SOFT
159159
do
160+
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
161+
160162
if [ "x$SOFT" = "x" ]; then
161-
_print_fatal "null string for software."
163+
_print_fatal "Warn: null string for software."
162164
continue
165+
else
166+
_trace "Notice: start install ${SOFT} ......"
163167
fi
164168

165-
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
166-
_trace "start install ${SOFT} ......"
169+
fchar=`echo $SOFT | cut -c -1`
170+
171+
if [ "x$fchar" = "x#" ]; then
172+
soft=`echo $SOFT | cut -c 2-`
173+
_print_fatal "Warn: skip install $soft"
174+
unset soft
175+
continue
176+
fi
177+
unset fchar
167178

168179
CMD="$package_manager install -y $SOFT"
169-
$CMD
180+
ret=`$CMD`
170181

171182
if [ $? -ne 0 ]; then
172183
_print_fatal "Error: $SOFT is install failed."
173-
exit 1
184+
#exit 1
185+
else
186+
_trace "Succ: $SOFT is installed."
174187
fi
175188

176-
done < ${g_LIST}
189+
done < "${g_LIST}"
177190

0 commit comments

Comments
 (0)