Fix whitespaces across the bash scripts
Change-Id: I8f3912f1b7f35aa889ce63592b30014d6433a82f
Issue-ID: OOM-1551
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
diff --git a/bash/tools/creating_data/download-pip.sh b/bash/tools/creating_data/download-pip.sh
index 1121ffd..dea60b5 100644
--- a/bash/tools/creating_data/download-pip.sh
+++ b/bash/tools/creating_data/download-pip.sh
@@ -15,24 +15,31 @@
# limitations under the License.
#
# COPYRIGHT NOTICE ENDS HERE
+
LIST_FILE="$1"
if [[ -z "$LIST_FILE" ]]; then
echo "Missing list file"
exit 1
fi
LIST_FILE=$(readlink -f "$LIST_FILE")
+
+
outdir="$2"
if [[ -z "$outdir" ]]; then
echo "Missing output directory"
exit 1
fi
+
lines=$(cat "$LIST_FILE" | wc -l)
cnt=1
+
# create output dir if not exists
mkdir -p "$outdir"
+
cd "$outdir"
while read -r line; do
echo "Downloading $cnt / $lines: $line"
pip download $line
cnt=$((cnt+1))
+
done < "$LIST_FILE"