mirror of
https://codeberg.org/puppe/secrets.git
synced 2025-12-20 00:42:17 +01:00
Merge branch 'master' into typed
This commit is contained in:
commit
23acc8b3d7
1 changed files with 2 additions and 5 deletions
7
secrets
7
secrets
|
|
@ -65,16 +65,13 @@ echo "!*data" >&2
|
||||||
|
|
||||||
read basedir
|
read basedir
|
||||||
if test ! -d "$basedir"; then
|
if test ! -d "$basedir"; then
|
||||||
mkdir "$basedir"
|
install -o root -g root -m 755 -d "$basedir"
|
||||||
chown root:root "$basedir"
|
|
||||||
chmod 755 "$basedir"
|
|
||||||
fi
|
fi
|
||||||
rm -rf "$basedir"/*
|
rm -rf "$basedir"/*
|
||||||
|
|
||||||
while read name; do
|
while read name; do
|
||||||
fullpath="$basedir/$name"
|
fullpath="$basedir/$name"
|
||||||
touch "$fullpath"
|
install -o root -g root -m 600 /dev/null "$fullpath"
|
||||||
chmod 600 "$fullpath"
|
|
||||||
read size
|
read size
|
||||||
head --bytes="$size" - > "$fullpath"
|
head --bytes="$size" - > "$fullpath"
|
||||||
read owner
|
read owner
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue