Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Parfonov <[email protected]>
  • Loading branch information
vparfonov committed Jun 25, 2020
1 parent 61e138a commit 2b09cfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
.vscode/

# Compiled #
dockerfiles/agent/scripts/watcher
dockerfiles/agent/scripts/watcher
13 changes: 7 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,26 @@ do
case $key in
-t|--tag)
TAG="${2}"
shift # past argument
shift # past value
shift
shift
;;
-o|--organization)
ORGANIZATION="${2}"
shift # past argument
shift # past value
shift
shift
;;
-h|--help)
echo "$usage"
exit 0
;;
*) printf "illegal option: -%s\n" $key
*) printf "illegal option: -%s\n" "$key"
echo "$usage"
exit 1
;;
esac
done

#default
if [[ -z "$TAG" ]]
then TAG="latest"
fi
Expand All @@ -50,4 +51,4 @@ then ORGANIZATION="che-incubator"
fi

compile;
dockerBuild "$TAG" "${ORGANIZATION}";
dockerBuild "$TAG" "${ORGANIZATION}";

0 comments on commit 2b09cfb

Please sign in to comment.