File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed
Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change 157157unset SOFT
158158while read -r SOFT
159159do
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
You can’t perform that action at this time.
0 commit comments