33 lines
1001 B
Diff
33 lines
1001 B
Diff
From c6581dea1d7b7667806a7f2a47208859443f29bf Mon Sep 17 00:00:00 2001
|
|
From: Dalibor Pospisil <dapospis@redhat.com>
|
|
Date: Thu, 19 Jun 2014 12:02:27 +0200
|
|
Subject: [PATCH 05/14] rlHash: added option -a as alias to --algorithm
|
|
|
|
---
|
|
src/infrastructure.sh | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/infrastructure.sh b/src/infrastructure.sh
|
|
index 66643e3..53d7c27 100644
|
|
--- a/src/infrastructure.sh
|
|
+++ b/src/infrastructure.sh
|
|
@@ -378,13 +378,13 @@ Returns 0 if success.
|
|
=cut
|
|
|
|
rlHash() {
|
|
- local GETOPT=$(getopt -q -o : -l decode,algorithm:,stdin -- "$@"); eval set -- "$GETOPT"
|
|
+ local GETOPT=$(getopt -q -o a: -l decode,algorithm:,stdin -- "$@"); eval set -- "$GETOPT"
|
|
local decode=0 alg="$rlHashAlgorithm" stdin=0
|
|
while true; do
|
|
case $1 in
|
|
--) shift; break ;;
|
|
--decode) decode=1 ;;
|
|
- --algorithm) shift; alg="$1" ;;
|
|
+ -a|--algorithm) shift; alg="$1" ;;
|
|
--stdin) stdin=1 ;;
|
|
esac
|
|
shift
|
|
--
|
|
1.9.3
|
|
|