Skip to content

Commit ff6521d

Browse files
authored
Merge pull request #93051 from gabriel-rh/standalone-logging-fixes-package-script
fixes for package script to run in github action
2 parents 435818d + 7029ba6 commit ff6521d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/package.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,17 @@ if [ "$USE_LOCAL" = "true" ]; then
3636
asciibinder package --site=$PACKAGE 2>/dev/null
3737
else
3838
echo "Warning: Local asciibinder not found. Falling back to container."
39-
$CONTAINER_ENGINE run --rm -it -v `pwd`:/docs:Z quay.io/openshift-cs/asciibinder asciibinder package --site=$PACKAGE 2>/dev/null
40-
fi
39+
$CONTAINER_ENGINE run --rm -v `pwd`:/docs:Z quay.io/openshift-cs/asciibinder asciibinder package --site=$PACKAGE
4140
else
4241
echo "Using $CONTAINER_ENGINE container for build"
43-
$CONTAINER_ENGINE run --rm -it -v `pwd`:/docs:Z quay.io/openshift-cs/asciibinder sh -c "git config --global --add safe.directory /docs && asciibinder package --site=$PACKAGE" 2>/dev/null
42+
$CONTAINER_ENGINE run --rm -v `pwd`:/docs:Z quay.io/openshift-cs/asciibinder sh -c "git config --global --add safe.directory /docs && asciibinder package --site=$PACKAGE"
4443
fi
4544

4645
## MOVING FILES INTO THE RIGHT PLACES
4746
rm -rf ../_package
4847
mkdir -p ../_package
49-
mv _package/${PACKAGE}/* ../_package/
48+
sudo mv _package/${PACKAGE}/* ../_package/
5049
git checkout $BRANCH
5150

5251
cd ..
53-
rm -rf .docs_source
52+
sudo rm -rf .docs_source

0 commit comments

Comments
 (0)