From 72a5f8a836092921e883b281dfcee1b847386f09 Mon Sep 17 00:00:00 2001 From: Stefal Date: Sat, 23 Nov 2024 18:36:44 +0100 Subject: [PATCH] Fix #443 --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 5e03ddb..a2c8bd9 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -288,7 +288,7 @@ install_rtkbase_bundled() { # Find __ARCHIVE__ marker, read archive content and decompress it ARCHIVE=$(awk '/^__ARCHIVE__/ {print NR + 1; exit 0; }' "${0}") # Check if there is some content after __ARCHIVE__ marker (more than 100 lines) - [[ $(sed -n '/__ARCHIVE__/,$p' "${0}" | wc -l) -lt 100 ]] && echo "RTKBASE isn't bundled inside install.sh. Please choose another source" && exit 1 + [[ $(sed -n '/^__ARCHIVE__/,$p' "${0}" | wc -l) -lt 100 ]] && echo "RTKBASE isn't bundled inside install.sh. Please choose another source" && exit 1 sudo -u "${RTKBASE_USER}" tail -n+${ARCHIVE} "${0}" | tar xpJv && \ _add_rtkbase_path_to_environment }