diff --git a/utils/scripts/sekrit-rekey.sh b/utils/scripts/sekrit-rekey.sh index a158453..8ac0a7e 100644 --- a/utils/scripts/sekrit-rekey.sh +++ b/utils/scripts/sekrit-rekey.sh @@ -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"