mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-08-14 02:28:06 -07:00
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:
parent
36a9c52a08
commit
be800f4e9d
1 changed files with 2 additions and 2 deletions
4
setup.sh
4
setup.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue