From 5003ae16c3206a8f1dcafd7460693a75f708482c Mon Sep 17 00:00:00 2001 From: Mastermindzh Date: Mon, 20 Mar 2023 09:37:12 +0100 Subject: [PATCH] fix: Cleaned up the export.sh script from extraneous documentation and a useless empty echo. --- CHANGELOG.md | 8 ++++++++ export.sh | 3 --- package.json | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7749972..9a14298 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.1] + +Cleaned up the export.sh script from extraneous documentation and a useless empty echo. + +## [1.1.0] + +Added the ability to use a different password for the encrypted output + ## [1.0.0] Initial version of the export script diff --git a/export.sh b/export.sh index 1bdf2d8..cabbde0 100644 --- a/export.sh +++ b/export.sh @@ -1,7 +1,5 @@ #!/usr/bin/env bash -# input password might be encrypted/hashed/etc - set -e export LC_CTYPE=C export LC_ALL=C @@ -57,7 +55,6 @@ BW_SESSION=$(bw login "$BW_ACCOUNT" "$BW_INTERNAL_PASSWORD" --raw) # commands echo "Exporting to \"$BW_ENC_OUTPUT_FILE\"" -echo "$BW_ENCRYPTION_PASSWORD" bw --raw --session "$BW_SESSION" export --format json | openssl enc $BW_OPENSSL_OPTIONS -k "$BW_INTERNAL_ENCRYPTION_PASS" -out "$BW_ENC_OUTPUT_FILE" bw_logout diff --git a/package.json b/package.json index 9cecc18..18736b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bw-export", - "version": "1.1.0", + "version": "1.1.1", "description": "bw-export is a simple bash script that exports a raw, encrypted JSON copy of your Bitwarden vault.", "main": "export.sh", "scripts": {