aboutsummaryrefslogtreecommitdiff
path: root/testrun.sh
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-01-26 23:30:56 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-01-26 23:30:56 +0100
commitaa5dc4938d43ae90e8604ffea40a759ff798da4b (patch)
tree9a228dcb788fd95794e04a0bb02ab364c962a08e /testrun.sh
parent6357c11d61c9286c591a758dd735a2ba5a2ac26f (diff)
downloadaurbuilder-aa5dc4938d43ae90e8604ffea40a759ff798da4b.tar.gz
scripts
Diffstat (limited to 'testrun.sh')
-rwxr-xr-xtestrun.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/testrun.sh b/testrun.sh
index 774962d..b8caf37 100755
--- a/testrun.sh
+++ b/testrun.sh
@@ -2,11 +2,14 @@
mkdir -p testrun/pkgout
+CHOWN_TO="$USER"
+OUTPUT="$(pwd)/testrun/pkgout"
+
./build.sh
docker run --name archpkg-test --env PACKAGE_NAME=minipro \
- --env FORCE_REBUILD=yes --env CHOWN="$UID:$(id -g "$USER")" \
- -v "$(pwd)/testrun/pkgout:/pkgout" \
+ --env FORCE_REBUILD=yes --env CHOWN="$(id -u "$CHOWN_TO"):$(id -g "$CHOWN_TO")" \
+ -v "$OUTPUT:/pkgout" \
archpkg
docker rm archpkg-test