void-packages/srcpkgs/0ad/patches/no-check-root.patch

16 lines
417 B
Diff

Index: 0ad-0.0.26/build/workspaces/update-workspaces.sh
===================================================================
--- 0ad-0.0.26.orig/build/workspaces/update-workspaces.sh
+++ 0ad-0.0.26/build/workspaces/update-workspaces.sh
@@ -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: $*