~siretart/cryptsetup/debian

« back to all changes in this revision

Viewing changes to debian/scripts/decrypt_gpg

  • Committer: Reinhard Tartler
  • Date: 2008-08-06 13:15:04 UTC
  • Revision ID: siretart@tauware.de-20080806131504-lm6wr3syvblxmm4b
import cryptsetup_1.0.6-3.dsc

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
        rc=1
8
8
 
9
9
        echo "Performing GPG key decryption" >&2
10
 
        while [ $tries -lt 3 ]; do
11
 
                if /usr/bin/gpg -q --decrypt $key; then
12
 
                        rc=0
13
 
                        break
14
 
                fi
15
 
                tries=$(( tries + 1 ))
16
 
        done
17
 
        return $rc
 
10
        if /usr/bin/gpg -q --decrypt $key; then
 
11
                return 0
 
12
        else
 
13
                return 1
 
14
        fi
18
15
}
19
16
 
20
17
echo "gpg decryption not implemented yet" >&2