summaryrefslogtreecommitdiffstats
path: root/bin/gen-DSA
diff options
context:
space:
mode:
authorRaphael Geissert <geissert@debian.org>2012-02-18 19:32:56 +0000
committerRaphael Geissert <geissert@debian.org>2012-02-18 19:32:56 +0000
commit63f01de0d788c5cfede177caf47fb1d9dfc6ef19 (patch)
treed99b0a1c8f2a340656e72339833f3d2d44038a83 /bin/gen-DSA
parenta793c0c20fe3742e3a73c98b0a7e7433d55784b2 (diff)
Eat the "DSA-" prefix if included
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@18472 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/gen-DSA')
-rwxr-xr-xbin/gen-DSA4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/gen-DSA b/bin/gen-DSA
index f1987a3803..e0d2d48022 100755
--- a/bin/gen-DSA
+++ b/bin/gen-DSA
@@ -45,8 +45,8 @@ if [ "$1" = "--save" ]; then
fi
DSAID=
-if printf '%s' "$1" | grep -Eq '^[0-9]+(-[0-9]+|)$'; then
- DSAID="$1"
+if printf '%s' "$1" | grep -Eq '^(DSA-|)[0-9]+(-[0-9]+|)$'; then
+ DSAID="${1#DSA-}"
shift
fi

© 2014-2024 Faster IT GmbH | imprint | privacy policy