浏览代码

pkg/arch: Use 'runuser' instead of 'su' for running 'makepkg'

Maximilian Luz 7 月之前
父节点
当前提交
795ede116a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .github/scripts/package/arch.sh

+ 1 - 1
.github/scripts/package/arch.sh

@@ -49,7 +49,7 @@ build-packages)
     export MAKEFLAGS="-j2"
 
     # Build
-    su nobody --pty -p -s /bin/bash -c 'makepkg -sf --skippgpcheck --noconfirm'
+    runuser -u nobody -- makepkg -sf --skippgpcheck --noconfirm
 
     # Prepare release
     mkdir release