Merge branch 'master' into typed

This commit is contained in:
Martin Puppe 2021-10-02 00:27:54 +02:00
commit 23acc8b3d7

View file

@ -65,16 +65,13 @@ echo "!*data" >&2
read basedir
if test ! -d "$basedir"; then
mkdir "$basedir"
chown root:root "$basedir"
chmod 755 "$basedir"
install -o root -g root -m 755 -d "$basedir"
fi
rm -rf "$basedir"/*
while read name; do
fullpath="$basedir/$name"
touch "$fullpath"
chmod 600 "$fullpath"
install -o root -g root -m 600 /dev/null "$fullpath"
read size
head --bytes="$size" - > "$fullpath"
read owner