contrib/prepare_upload.sh: fix cd problems

Call the script from the proper directory, and cd into the topdir on top
of the script. Fixes:
/build/contrib/jenkins.sh: line 71: contrib/prepare_upload.sh: No such file or directory

Related: OS#4413
Change-Id: Icbfaa5579aab887830ca90b24a2e322df8d98f4f
This commit is contained in:
Oliver Smith committed 2021-03-08 08:37:06 +01:00
1 parent 1031d9b884
commit 62ad58ad56
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
#!/bin/sh -e
# Create copies of binaries with -latest, -$GIT_VERSION (OS#4413, OS#3452)
cd "$(dirname "$0")/.."
GIT_VERSION="$(./git-version-gen .tarball-version)"
echo "Copying binaries with "-latest" and "-$GIT_VERSION" appended..."