We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf46bd8 commit 6ed0a9aCopy full SHA for 6ed0a9a
bashrc/threads.sh
@@ -149,10 +149,18 @@ INDEX=0
149
while read -r HOST
150
do
151
(( INDEX++ ))
152
+ fchar=`echo ${HOST} | cut -c -1`
153
+
154
if [ "x${HOST}" == "x" ]; then
- _print_fatal "[$INDEX] null string for hostname."
155
+ _print_fatal "Notice: null string for hostname."
156
+ continue
157
+ elif [ "x$fchar" = "x#" ]; then
158
+ host=`echo $HOST | cut -c 2-`
159
+ _print_fatal "[$INDEX] Warn: skip ${host}"
160
+ unset host
161
continue
162
fi
163
+ unset fchar
164
165
_trace "[$INDEX] start ${HOST} ......"
166
read <&9
0 commit comments