|
|
|
@ -55,11 +55,11 @@ function _has_line {
|
|
|
|
|
[ "$other_files" -eq 0 ]
|
|
|
|
|
|
|
|
|
|
# Both files should be present:
|
|
|
|
|
local first_enctypted_file=$(_get_encrypted_filename $FIRST_FILE)
|
|
|
|
|
local second_enctypted_file=$(_get_encrypted_filename $SECOND_FILE)
|
|
|
|
|
local first_encrypted_file=$(_get_encrypted_filename $FIRST_FILE)
|
|
|
|
|
local second_encrypted_file=$(_get_encrypted_filename $SECOND_FILE)
|
|
|
|
|
|
|
|
|
|
[ -f "$first_enctypted_file" ]
|
|
|
|
|
[ -f "$second_enctypted_file" ]
|
|
|
|
|
[ -f "$first_encrypted_file" ]
|
|
|
|
|
[ -f "$second_encrypted_file" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -74,11 +74,11 @@ function _has_line {
|
|
|
|
|
[ "$second_line" -eq 1 ]
|
|
|
|
|
|
|
|
|
|
# Both files should be present:
|
|
|
|
|
local first_enctypted_file=$(_get_encrypted_filename $FIRST_FILE)
|
|
|
|
|
local second_enctypted_file=$(_get_encrypted_filename $SECOND_FILE)
|
|
|
|
|
local first_encrypted_file=$(_get_encrypted_filename $FIRST_FILE)
|
|
|
|
|
local second_encrypted_file=$(_get_encrypted_filename $SECOND_FILE)
|
|
|
|
|
|
|
|
|
|
[ -f "$first_enctypted_file" ]
|
|
|
|
|
[ -f "$second_enctypted_file" ]
|
|
|
|
|
[ -f "$first_encrypted_file" ]
|
|
|
|
|
[ -f "$second_encrypted_file" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -101,8 +101,8 @@ function _has_line {
|
|
|
|
|
local mapping_contains=$(_has_line "$file_in_folder")
|
|
|
|
|
[ "$mapping_contains" -eq 1 ]
|
|
|
|
|
|
|
|
|
|
local enctypted_file=$(_get_encrypted_filename $file_in_folder)
|
|
|
|
|
[ -f "$enctypted_file" ]
|
|
|
|
|
local encrypted_file=$(_get_encrypted_filename $file_in_folder)
|
|
|
|
|
[ -f "$encrypted_file" ]
|
|
|
|
|
|
|
|
|
|
# Cleaning up:
|
|
|
|
|
rm -r "$folder"
|
|
|
|
@ -118,11 +118,11 @@ function _has_line {
|
|
|
|
|
local mapping_contains=$(_has_line "$SECOND_FILE")
|
|
|
|
|
[ "$mapping_contains" -eq 1 ]
|
|
|
|
|
|
|
|
|
|
local first_enctypted_file=$(_get_encrypted_filename $FIRST_FILE)
|
|
|
|
|
local second_enctypted_file=$(_get_encrypted_filename $SECOND_FILE)
|
|
|
|
|
local first_encrypted_file=$(_get_encrypted_filename $FIRST_FILE)
|
|
|
|
|
local second_encrypted_file=$(_get_encrypted_filename $SECOND_FILE)
|
|
|
|
|
echo "$output"
|
|
|
|
|
echo "$first_enctypted_file and $second_enctypted_file"
|
|
|
|
|
echo "$first_encrypted_file and $second_encrypted_file"
|
|
|
|
|
|
|
|
|
|
[ -f "$first_enctypted_file" ]
|
|
|
|
|
[ ! -f "$second_enctypted_file" ]
|
|
|
|
|
[ -f "$first_encrypted_file" ]
|
|
|
|
|
[ ! -f "$second_encrypted_file" ]
|
|
|
|
|
}
|
|
|
|
|