check_serial_unique(): Reduction
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
parent
8ca55cfff0
commit
c03e1eef84
@ -2457,8 +2457,6 @@ check_serial_unique() {
|
|||||||
: # ok
|
: # ok
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ "$2" = batch ] && internal_batch=1
|
|
||||||
|
|
||||||
unset -v unique_serial_true
|
unset -v unique_serial_true
|
||||||
|
|
||||||
# Check for openssl -status of serial number
|
# Check for openssl -status of serial number
|
||||||
@ -2482,13 +2480,12 @@ check_serial_unique() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# In batch mode return result only
|
# In batch mode return result only
|
||||||
if [ "$internal_batch" ] || [ "$EASYRSA_BATCH" ]
|
if [ "$2" = batch ] || [ "$EASYRSA_BATCH" ]; then
|
||||||
then
|
|
||||||
if [ "$unique_serial_true" ]; then
|
if [ "$unique_serial_true" ]; then
|
||||||
unset -v unique_serial_true internal_batch
|
unset -v unique_serial_true
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
unset -v unique_serial_true internal_batch
|
unset -v unique_serial_true
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user