Skip to content

Commit

Permalink
Sonar upgrade POC - bash methods rename
Browse files Browse the repository at this point in the history
  • Loading branch information
linda.nasredin committed Aug 14, 2023
1 parent 0fc1db4 commit 1899d83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/upgrade/python_upgrader/upgrade_v4_10.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,19 @@ function download_and_extract_tarball() {
fi
}

function unsetEnvironmentVariables() {
function unset_environment_variables() {
unset JSONAR_LOCALDIR JSONAR_BASEDIR JSONAR_VERSION JSONAR_DATADIR JSONAR_LOGDIR
echo "Environment variables were unset"
}

function runSonargSetup() {
function run_sonarg_setup() {
sudo $EXTRACTION_DIR/bin/sonarg-setup --no-interactive
}

function run_upgrade() {
download_and_extract_tarball
unsetEnvironmentVariables
runSonargSetup
unset_environment_variables
run_sonarg_setup
}

run_upgrade
Expand Down

0 comments on commit 1899d83

Please sign in to comment.