|
Lines 238-245
Link Here
|
| 238 |
return 0 |
238 |
return 0 |
| 239 |
fi |
239 |
fi |
| 240 |
done |
240 |
done |
| 241 |
errmsg Error: "Program '"$1"' is missing, please install it first -> "${TOOLURL["$ARRAY"]}"" |
241 |
errmsg Error: "Program '"$1"' is missing, please install it first -> "${TOOLURL[$ARRAY]}"" |
| 242 |
echo -e " ${TOOLMSG["$ARRAY"]}" |
242 |
echo -e " ${TOOLMSG[$ARRAY]}" |
| 243 |
return 1 |
243 |
return 1 |
| 244 |
} |
244 |
} |
| 245 |
|
245 |
|
|
Lines 247-253
Link Here
|
| 247 |
ARRAY_NUM="${#TOOLKIT[@]}" |
247 |
ARRAY_NUM="${#TOOLKIT[@]}" |
| 248 |
ARRAY="1" |
248 |
ARRAY="1" |
| 249 |
while [ "$ARRAY" -le "$ARRAY_NUM" ]; do |
249 |
while [ "$ARRAY" -le "$ARRAY_NUM" ]; do |
| 250 |
testprog ${TOOLKIT["$ARRAY"]} || exit 0; |
250 |
testprog ${TOOLKIT[$ARRAY]} || exit 0; |
| 251 |
let ARRAY=$ARRAY+1 |
251 |
let ARRAY=$ARRAY+1 |
| 252 |
done |
252 |
done |
| 253 |
TOOLMSG=([1]=) # Reset |
253 |
TOOLMSG=([1]=) # Reset |