Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurphy18 committed Nov 19, 2024
1 parent 717b867 commit 333e699
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions linux/svtminion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -444,23 +444,30 @@ _get_desired_salt_version_fn() {
"salt-minion to install, input directory $1"

generic_versions_tmpdir="$1"

# DGM debugging
ls -alh ${generic_versions_tmpdir}

curr_pwd=$(pwd)
cd ${generic_versions_tmpdir} || return 1

# DGM debugging
ls -alh ./.

if [ "$salt_url_version" = "latest" ]; then
# shellcheck disable=SC2010,SC2012
_GENERIC_PKG_VERSION=$(ls ./ | grep -v 'index.html' | sort -V -u | tail -n 1)
_GENERIC_PKG_VERSION=$(ls ./. | grep -v 'index.html' | sort -V -u | tail -n 1)
elif [ "$(echo "$salt_url_version" | grep -E '^(3006|3007)$')" != "" ]; then
# want major latest version of Salt
# shellcheck disable=SC2010,SC2012
_GENERIC_PKG_VERSION=$(ls ./ | grep -v 'index.html' | sort -V -u | grep -E "$salt_url_version" | tail -n 1)
_GENERIC_PKG_VERSION=$(ls ./. | grep -v 'index.html' | sort -V -u | grep -E "$salt_url_version" | tail -n 1)
elif [ "$(echo "$salt_url_version" | grep -E '^([3-9][0-5]{2}[6-9](\.[0-9]*)?)')" != "" ]; then
# Minor version Salt, want specific minor version
_GENERIC_PKG_VERSION="$salt_url_version"
else
# default to latest version Salt
# shellcheck disable=SC2010,SC2012
_GENERIC_PKG_VERSION=$(ls ./ | grep -v 'index.html' | sort -V -u | tail -n 1)
_GENERIC_PKG_VERSION=$(ls ./. | grep -v 'index.html' | sort -V -u | tail -n 1)
fi
cd ${curr_pwd} || return 1

Expand Down

0 comments on commit 333e699

Please sign in to comment.