Skip to content

Commit 9d101b6

Browse files
committed
Don't reinstall rtklib if not needed
1 parent 9470997 commit 9d101b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/rtkbase_update.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ upd_2.6.0() {
203203
# update modem_check_service file (see https://github.com/Stefal/rtkbase/commit/cfad1981e483d74da04f53b8d7b354661100d610)
204204
"${destination_directory}"/tools/install.sh --user "${standard_user}" --unit-files
205205
# build rtklib if current release doesn't work
206-
"${destination_directory}"/tools/install.sh --user "${standard_user}" --rtklib
206+
if ! str2str --version > /dev/null 2>&1
207+
then
208+
"${destination_directory}"/tools/install.sh --user "${standard_user}" --rtklib
209+
fi
207210
}
208211

209212
#check if we can apply the update

0 commit comments

Comments
 (0)