Skip to content

Commit

Permalink
correct syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-duval committed Sep 29, 2020
1 parent eb665fa commit 2006415
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ChartRepositoryUrl=$3
chartVersion="0.0.0"
chartFileName="Chart.yaml"

source ./function.sh
source $(dirname "$0")/function.sh


# check chart path and correct it if needed
Expand All @@ -28,8 +28,7 @@ fi


# check the chart himself
if [ $chartStatus == "deleted"]
then
if [ $chartStatus == "deleted" ]; then
if [ -d "$chartPath" ]; then
>&2 echo "You try to delete an existing chart"
exit 1;
Expand All @@ -38,8 +37,7 @@ then
fi
fi

if [ $chartStatus == "created" ] || [ $chartStatus == "updated" ]
then
if [ $chartStatus == "created" ] || [ $chartStatus == "updated" ]; then
check_struct="$(check_chart_structure $chartPath)"
if [ $check_struct ]; then
eval $(parse_yaml "$chartPath/$chartFileName" CHART_)
Expand Down

0 comments on commit 2006415

Please sign in to comment.