added to readme
This commit is contained in:
parent
23fab1673f
commit
3289d39978
2 changed files with 6 additions and 6 deletions
|
@ -126,15 +126,15 @@ for ((idxA=0; idxA<max; idxA++)); do # iterate idxA from 0 to lengt
|
|||
else
|
||||
#custom execution for first run:
|
||||
if [ "$counter" == 0 ]; then
|
||||
echo "gpg -ea -r "${emails[$idxA]}" -r "${emails[$idxB]}" -r "${emails[$idxC]}" -r "${emails[$idxD]}" "$debug" --output $workdir/$file.step$counter $file"
|
||||
gpg -ea -r "${emails[$idxA]}" -r "${emails[$idxB]}" -r "${emails[$idxC]}" -r "${emails[$idxD]}" "$debug" --output $workdir/$file.step$counter $file
|
||||
|
||||
#custom execution for last run:
|
||||
elif [ "$counter" == $((ans-1)) ]; then
|
||||
echo "gpg -ea -r "${emails[$idxA]}" -r "${emails[$idxB]}" -r "${emails[$idxC]}" -r "${emails[$idxD]}" "$debug" --output $file.ENCRYPTED $workdir/$file.step$((counter-1))"
|
||||
gpg -ea -r "${emails[$idxA]}" -r "${emails[$idxB]}" -r "${emails[$idxC]}" -r "${emails[$idxD]}" "$debug" --output $file.ENCRYPTED $workdir/$file.step$((counter-1))
|
||||
|
||||
#normal execution:
|
||||
else
|
||||
echo "gpg -ea -r "${emails[$idxA]}" -r "${emails[$idxB]}" -r "${emails[$idxC]}" -r "${emails[$idxD]}" "$debug" --output $workdir/$file.step$counter $workdir/$file.step$((counter-1))"
|
||||
gpg -ea -r "${emails[$idxA]}" -r "${emails[$idxB]}" -r "${emails[$idxC]}" -r "${emails[$idxD]}" "$debug" --output $workdir/$file.step$counter $workdir/$file.step$((counter-1))
|
||||
|
||||
fi
|
||||
#increase loop counter:
|
||||
|
|
|
@ -78,15 +78,15 @@ for ((idxA=0; idxA<max; idxA++)); do # iterate idxA from 0 to lengt
|
|||
else
|
||||
#custom execution for first run:
|
||||
if [ "$counter" == 0 ]; then
|
||||
echo "gpg -ea -r "${emails[$idxA]}" -r "${emails[$idxB]}" -r "${emails[$idxC]}" -r "${emails[$idxD]}" "$debug" --output $workdir/$file.step$counter $file"
|
||||
gpg -ea -r "${emails[$idxA]}" -r "${emails[$idxB]}" -r "${emails[$idxC]}" -r "${emails[$idxD]}" "$debug" --output $workdir/$file.step$counter $file
|
||||
|
||||
#custom execution for last run:
|
||||
elif [ "$counter" == $((ans-1)) ]; then
|
||||
echo "gpg -ea -r "${emails[$idxA]}" -r "${emails[$idxB]}" -r "${emails[$idxC]}" -r "${emails[$idxD]}" "$debug" --output $file.ENCRYPTED $workdir/$file.step$((counter-1))"
|
||||
gpg -ea -r "${emails[$idxA]}" -r "${emails[$idxB]}" -r "${emails[$idxC]}" -r "${emails[$idxD]}" "$debug" --output $file.ENCRYPTED $workdir/$file.step$((counter-1))
|
||||
|
||||
#normal execution:
|
||||
else
|
||||
echo "gpg -ea -r "${emails[$idxA]}" -r "${emails[$idxB]}" -r "${emails[$idxC]}" -r "${emails[$idxD]}" "$debug" --output $workdir/$file.step$counter $workdir/$file.step$((counter-1))"
|
||||
gpg -ea -r "${emails[$idxA]}" -r "${emails[$idxB]}" -r "${emails[$idxC]}" -r "${emails[$idxD]}" "$debug" --output $workdir/$file.step$counter $workdir/$file.step$((counter-1))
|
||||
|
||||
fi
|
||||
#increase loop counter:
|
||||
|
|
Loading…
Reference in a new issue