Add better support for Windows (#291)

This commit is contained in:
Joshua B
2019-10-02 14:01:33 +01:00
committed by Tom Limoncelli
parent 51ed419354
commit 02c3edb9e6
2 changed files with 4 additions and 2 deletions

View File

@@ -213,7 +213,8 @@ function add_filename_to_cryptlist() {
else else
echo "========== Adding file to list." echo "========== Adding file to list."
touch "$BB_FILES" touch "$BB_FILES"
sort -u -o "$BB_FILES" <(echo "$name") "$BB_FILES" echo "$name" >> "$BB_FILES"
sort -u -o "$BB_FILES" "$BB_FILES"
fi fi
} }

View File

@@ -19,7 +19,8 @@ KEYNAME="$1"
# Add the email address to the BB_ADMINS file. Remove any duplicates. # Add the email address to the BB_ADMINS file. Remove any duplicates.
# The file must exist for sort to act as we expect. # The file must exist for sort to act as we expect.
touch "$BB_ADMINS" touch "$BB_ADMINS"
sort -fdu -o "$BB_ADMINS" <(echo "$1") "$BB_ADMINS" echo "$1" >> "$BB_ADMINS"
sort -fdu -o "$BB_ADMINS" "$BB_ADMINS"
# Add the user's key to the keychain. # Add the user's key to the keychain.