void-packages/srcpkgs/0ad/patches/no-check-root.patch
Đoàn Trần Công Danh 6df45d6fe8 0ad: patch for Python 3.11
2022-11-29 08:33:39 +07:00

15 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: $*