#!/usr/bin/env bash
-
-
-set -ex
+set -eux -o pipefail
SCRIPT_PATH=`realpath $0`
TOOL_PATH=`dirname "$SCRIPT_PATH"`
# Call scripts to collect everything from Internet,
# all the collected files need to be put under ICN_PATH
-for collect_sh in `find icn/ -name collect_*.sh | sort`
-do
- collect_parent=`dirname $collect_sh`
- pushd $collect_parent
+for collect_sh in `find icn/ -name collect_*.sh | sort`; do
+ collect_parent=`dirname $collect_sh`
+ pushd $collect_parent
bash `basename $collect_sh` $ICN_PATH
- popd
+ popd
done