Skip to content

Commit

Permalink
Fix shellcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
WStechura committed Jan 3, 2025
1 parent 39fec6a commit be2f999
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/bin/sh
#!/bin/bash -eu

# This script acts as a self contained installer of the procuct

set -e

readonly DEFAULT_INSTALL_DIR="/opt/dynatrace/oneagent"
readonly INSTALLER_VERSION="##VERSION##"
readonly DEPLOYMENT_CONF_PATH="/var/lib/dynatrace/oneagent/agent/config"
Expand Down Expand Up @@ -61,6 +59,7 @@ deployUninstallScript() {
}

applyConfig() {
#
"${INSTALL_DIR}/agent/tools/${ONEAGENTCTL_BIN}" ${CTL_PARAMS}
}

Expand Down
5 changes: 1 addition & 4 deletions roles/oneagent/tests/resources/installers/oneagentctl.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash
#!/bin/bash -eu

# This file simulates deployment functionalities of oneagentctl binary, used to configure installation.

set -e

readonly INSTALLER_VERSION="##VERSION##"
readonly DEPLOYMENT_CONF_PATH="/var/lib/dynatrace/oneagent/agent/config"

Expand Down

0 comments on commit be2f999

Please sign in to comment.