fix: fixed incorrect return value in setup.sh

This commit fixes an incorrect return value in setup.sh. In this bash program. 
A score of zero (0) indicates that everything went smoothly. Anything else indicates 
a problem. A value of 1 indicates that some type of error has occurred.

Signed-off-by: Geunsik Lim <leemgs@gmail.com>
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
This commit is contained in:
Geunsik Lim 2022-09-21 17:50:44 +09:00 committed by GitHub
commit be800f4e9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,14 +3,14 @@
if [ -f config.env ]; then
echo "config.env already exists, skipping"
echo "Please delete config.env if you want to re-run this script"
exit 0
exit 1
fi
function check_dep(){
echo "Checking for $1 ..."
which "$1" 2>/dev/null || {
echo "Please install $1."
exit 0
exit 1
}
}
check_dep curl