Skip to content

Commit

Permalink
Repair set version
Browse files Browse the repository at this point in the history
  • Loading branch information
adostal committed May 25, 2018
1 parent d93e1ed commit a93e1b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ LABEL maintainer="Ales Dostal <a.dostal@apitree.cz>"
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# COPY ./src /usr/src/app

COPY ./src/khj.sh /usr/local/bin
RUN mv /usr/local/bin/khj.sh /usr/local/bin/khj
RUN chmod 777 /usr/local/bin/khj
Expand Down
4 changes: 2 additions & 2 deletions src/khj.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ noArg() {

checkDirectoryChart() {
if [ ! "${DIRECTORY_CHART:-}" ]; then
echo "ERROR variable \$VDIRECTORY_CHART is not set"
echo "ERROR variable \$DIRECTORY_CHART is not set"
exit 1
fi
}
Expand Down Expand Up @@ -54,7 +54,7 @@ helmSetVersion() {
echo "Helm set version"
checkDirectoryChart;
checkVersionExist;
sed -i -e 's/{HELM_VERSION}/${VERSION}/g' ${DIRECTORY_CHART}/Chart.yaml
sed -i -e "s/{HELM_VERSION}/${VERSION}/g" ${DIRECTORY_CHART}/Chart.yaml
}

helmShowChart() {
Expand Down

0 comments on commit a93e1b1

Please sign in to comment.