sekrit-rekey: change for ... in $(cmd)
to cmd | while read
This commit is contained in:
parent
73880fb104
commit
71019bf806
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
# env
|
||||
# Written in 2020 by Lucas
|
||||
# Written in 2020,2022 by Lucas
|
||||
# CC0 1.0 Universal/Public domain - No rights reserved
|
||||
#
|
||||
# To the extent possible under law, the author(s) have dedicated all
|
||||
@ -38,7 +38,7 @@ scratch=$(mktemp -tp "$newdir" .sekrit-scratch-XXXXXXXXXX) ||
|
||||
err "failed to create scratch file"
|
||||
trap 'rm -fr -- "$scratch" "$newdir"' INT QUIT TERM
|
||||
|
||||
for entry in $(sekrit ls | grep -v ^DONE); do
|
||||
sekrit ls | while read -r entry; do
|
||||
printf "%s... " "$entry"
|
||||
sekrit get "$entry" >|"$scratch" ||
|
||||
err "failed to export entry $entry"
|
||||
|
Loading…
Reference in New Issue
Block a user