Skip to content

Commit

Permalink
Update sbin/prepareWorkspace.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Martijn Verburg <martijnverburg@gmail.com>
  • Loading branch information
judovana and karianna authored Apr 6, 2024
1 parent 9ed221a commit 57dda8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/prepareWorkspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ unpackFromArchive() {
pushd "./${BUILD_CONFIG[OPENJDK_SOURCE_DIR]}"
local topLevelItems=$(tar --exclude='*/*' -tf "${BUILD_CONFIG[OPENJDK_FOREST_SOURCE_ARCHIVE_ABSPATH]}" | wc -l)
if [ "$topLevelItems" -eq "1" ] ; then
echo "Source tarball contains exaclty one directory, using"
echo "Source tarball contains exactly one directory"
tar --strip-components 1 -xf "${BUILD_CONFIG[OPENJDK_FOREST_SOURCE_ARCHIVE_ABSPATH]}"
else
echo "Source tarball does not contain a top level directory"
Expand Down

0 comments on commit 57dda8a

Please sign in to comment.