Add better support for Windows (#291)
This commit is contained in:
@@ -213,7 +213,8 @@ function add_filename_to_cryptlist() {
|
||||
else
|
||||
echo "========== Adding file to list."
|
||||
touch "$BB_FILES"
|
||||
sort -u -o "$BB_FILES" <(echo "$name") "$BB_FILES"
|
||||
echo "$name" >> "$BB_FILES"
|
||||
sort -u -o "$BB_FILES" "$BB_FILES"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,8 @@ KEYNAME="$1"
|
||||
# Add the email address to the BB_ADMINS file. Remove any duplicates.
|
||||
# The file must exist for sort to act as we expect.
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user