Skip to content

Commit

Permalink
Fail when ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
PYLochou authored Jan 21, 2025
1 parent e40ac0c commit 4bcc6cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/features/loadFeatures.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ function loadFeatures() {
if [ ! "$featureDir" ]
then
echo "ERROR: Please specify the feature directory with the first argument to load features."
return 0
return 1
fi

if [ ! "$currentVersion" ]
then
echo "ERROR: Current version is unknown, skip loading features."
return 0
return 1
fi

if [ -f "$featureFile" ]
Expand Down Expand Up @@ -100,7 +100,7 @@ function loadFeatures() {
if [ ! "$1" ]
then
echo "ERROR: Please specify feature directory."
return 0
return 1
fi

# $1 feature directory
Expand Down

0 comments on commit 4bcc6cd

Please sign in to comment.