Skip to content
Snippets Groups Projects
Commit 553f10c5 authored by Dirk Sarpe's avatar Dirk Sarpe
Browse files

remove after first whitespace in version

before we removed after last
parent 7fbb900a
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ noprefix=${rawstring#$prefix} ...@@ -11,7 +11,7 @@ noprefix=${rawstring#$prefix}
nosuffix=${noprefix%$suffix} nosuffix=${noprefix%$suffix}
dlcommand="$nosuffix -q -P /home/monitoring/" dlcommand="$nosuffix -q -P /home/monitoring/"
cur_version_noisy=$(rstudio-server version) cur_version_noisy=$(rstudio-server version)
cur_version=${cur_version_noisy% *} cur_version=${cur_version_noisy%% *}
avail_version=$(cut -d "-" -f 3 <<< "$dlcommand") avail_version=$(cut -d "-" -f 3 <<< "$dlcommand")
if [ "$avail_version" == "$cur_version" ] if [ "$avail_version" == "$cur_version" ]
then then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment