Skip to content

Commit fde3f56

Browse files
skyscraper.sh function _get_ver_skyscraper - run check as $user, not as root. (#3793)
1 parent 98a82fd commit fde3f56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scriptmodules/supplementary/skyscraper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function _purge_platform_skyscraper() {
147147

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

0 commit comments

Comments
 (0)