This commit is contained in:
Arthur Khachaturov 2024-09-01 13:47:00 +03:00
parent 325f310d0a
commit 6be684b66d
No known key found for this signature in database
GPG key ID: CAC2B7EB6DF45D55

View file

@ -1,9 +1,5 @@
#!/bin/bash #!/bin/bash
log() {
echo "$@" >> /home/wzray/out
}
exec {OUTPUT_PIPE}<> <(:) exec {OUTPUT_PIPE}<> <(:)
DESC="${1:-"Please enter your authentication passphrase:"}" DESC="${1:-"Please enter your authentication passphrase:"}"
@ -17,7 +13,6 @@ EOF
{ {
while read -r out <&$OUTPUT_PIPE; do while read -r out <&$OUTPUT_PIPE; do
log "$out"
if [[ "$out" = "D "* ]]; then if [[ "$out" = "D "* ]]; then
echo "${out#"D "}" echo "${out#"D "}"
break break