diff --git a/convert_to_csv.sh b/convert_to_csv.sh index c9ede98..6575415 100755 --- a/convert_to_csv.sh +++ b/convert_to_csv.sh @@ -32,7 +32,7 @@ if [[ -f "$FINAL_FILE_NAME" ]]; then PASSWORD=$($PASS_EXECUTABLE show "$GPG_FILE_NAME" | head -n1) - LOGIN_KEY=$($PASS_EXECUTABLE show "$GPG_FILE_NAME" | awk '/^login:|ID:|email:|user:/ {ORS=" ";for(i=2; i<=NF; i++) print $i; exit;}') + LOGIN_KEY=$($PASS_EXECUTABLE show "$GPG_FILE_NAME" | awk 'BEGIN{IGNORECASE=1} /^login:|ID:|email:|user:/ {ORS=" ";for(i=2; i<=NF; i++) print $i; exit;}') GPG_FILE_NAME=${GPG_FILE_NAME//\// > } echo "Processing $GPG_FILE_NAME";