Merge pull request #60 from leemgs/patch-6

fix: fixed incorrect return value in setup.sh
This commit is contained in:
Brendan Dolan-Gavitt 2022-09-21 11:29:31 -04:00 committed by GitHub
commit 392b94e5f6
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