Skip to content

Commit

Permalink
Change the docker and appImage deployment scripts to not alter the de…
Browse files Browse the repository at this point in the history
…ployment string if no deployment argument is passed
  • Loading branch information
VakarisZ committed Sep 15, 2021
1 parent f0bdfc4 commit bde710c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build_scripts/build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ branch="develop"
monkey_repo="$DEFAULT_REPO_MONKEY_HOME"
monkey_version="dev"
package=""
deployment_type="develop"
deployment_type=""

while (( "$#" )); do
case "$1" in
Expand Down
6 changes: 4 additions & 2 deletions build_scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ copy_monkey_island_to_build_dir() {
}

modify_deployment() {
local deployment_file_path="$2/monkey_island/cc/deployment.json"
echo -e "{\n \"deployment\": \"$1\"\n}" > $deployment_file_path
if [ -n "$1" ]; then
local deployment_file_path="$2/monkey_island/cc/deployment.json"
echo -e "{\n \"deployment\": \"$1\"\n}" > $deployment_file_path
fi
}

add_agent_binaries_to_build_dir() {
Expand Down

0 comments on commit bde710c

Please sign in to comment.