Skip to content

Commit 1616109

Browse files
skyscraper.sh - use 'Skyscraper -h' for version interrogation. Require 'ge' match for version check. (#3825)
1 parent faefdca commit 1616109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scriptmodules/supplementary/skyscraper.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ function _purge_platform_skyscraper() {
147147

148148
function _get_ver_skyscraper() {
149149
if [[ -f "$md_inst/Skyscraper" ]]; then
150-
echo $(sudo -u "$user" "$md_inst/Skyscraper" --version | cut -d' ' -f2 2>/dev/null)
150+
echo $(sudo -u "$user" "$md_inst/Skyscraper" -h | grep 'Running Skyscraper' | cut -d' ' -f 3 | tr -d v 2>/dev/null)
151151
fi
152152
}
153153

154154
function _check_ver_skyscraper() {
155155
ver=$(_get_ver_skyscraper)
156-
if compareVersions "$ver" lt "3.5"; then
156+
if ! compareVersions "$ver" ge "3.5"; then
157157
printMsgs "dialog" "The version of Skyscraper you currently have installed is incompatible with options used by this script. Please update Skyscraper to the latest version to continue."
158158
return 1
159159
fi

0 commit comments

Comments
 (0)