mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-30 19:17:36 +00:00
tool/zsh/mkofs: doas
This commit is contained in:
parent
102edf4ea2
commit
9f6bf6ea71
1 changed files with 6 additions and 1 deletions
|
@ -17,7 +17,12 @@ cut -d' ' -f2 /proc/mounts | while read -r line; do
|
|||
return 0
|
||||
fi
|
||||
done
|
||||
if whence doas >/dev/null; then
|
||||
doas=doas
|
||||
else
|
||||
doas=sudo
|
||||
fi
|
||||
( set -x
|
||||
sudo mount -t tmpfs -o size=10G,noatime,nodiratime /dev/shm "$o"
|
||||
$doas mount -t tmpfs -o size=10G,noatime,nodiratime /dev/shm "$o"
|
||||
)
|
||||
# vim:ft=zsh
|
||||
|
|
Loading…
Reference in a new issue