Skip to content

Commit f550583

Browse files
committed
Permission fixes.
1 parent 031e59c commit f550583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GoboALFS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@ fi
165165

166166
if [ ! -d "$BUILDDIR/Programs/Sudo" ]
167167
then
168-
cat << EOF > "$BUILDDIR/bin/sudo"
168+
sudo tee "$BUILDDIR/bin/sudo" << EOF > /dev/null
169169
#!/bin/bash
170170
if [ "$1" = "-u" ]
171171
then shift 2
172172
else shift 1
173173
fi
174174
exec "$@"
175175
EOF
176-
chmod +x "$BUILDDIR/bin/sudo"
176+
sudo chmod +x "$BUILDDIR/bin/sudo"
177177
fi
178178

179179
# Move left-over files to the packages where they belong

0 commit comments

Comments
 (0)