Skip to content

Commit

Permalink
tools: Fix groupname if it differs from username
Browse files Browse the repository at this point in the history
The script `tools/packaging/static-build/qemu/build-base-qemu.sh`
previously failed on systems where the user's groupname differs from the
username

Fixes: #3461

Signed-off-by: Sebastian Hasler <sebastian.hasler@stuvus.uni-stuttgart.de>
  • Loading branch information
haslersn authored and snir911 committed Jan 31, 2022
1 parent cedb01d commit 770d4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/packaging/static-build/qemu/build-base-qemu.sh
Expand Up @@ -54,4 +54,4 @@ sudo "${container_engine}" run \
-v "${PWD}":/share qemu-static \
mv "${qemu_destdir}/${qemu_tar}" /share/

sudo chown ${USER}:${USER} "${PWD}/${qemu_tar}"
sudo chown ${USER}:$(id -gn ${USER}) "${PWD}/${qemu_tar}"

0 comments on commit 770d4ac

Please sign in to comment.