mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:04:06 +00:00
Remove root check in update-workspace.sh
If you run as root then created files will be owned by root, this is expected behaviour and not messing with permissions as stated in the error message. Running in a container the root user may map to the user starting the container while all other users would need mapping to be able to work with a bind mounted a checkout. Further Debian patches out the root check to be able to build on their builder. Given the above remove the check. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
echo "Running as root will mess up file permissions. Aborting ..." 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
die()
|
||||
{
|
||||
echo ERROR: "$*"
|
||||
|
||||
Reference in New Issue
Block a user