Because of `set -ex` shell setup, if function return no zero
the whole scripts will exit.
JIRA: COMPASS-427
Change-Id: I153e2f18d367741f41a9840d8a98a39a4b2d055f
Signed-off-by: QiLiang <liangqi1@huawei.com>
;;
*)
echo "'$1' cannot be extract()"
- return -1
+ return
;;
esac
else
echo "'$1' is not a valid file"
- return -1
+ return
fi
if [ ! -f ${dir_name}/requirements.txt ]; then
echo "${dir_name}/requirements.txt does not exist"
- return -1
+ return
fi
pip install --download=$2 -r ${dir_name}/requirements.txt