1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: add blog and fix double redirect real ip

This commit is contained in:
oddlama 2024-09-22 01:57:37 +02:00
parent c30ec709a7
commit 4cbbd2f871
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 30 additions and 21 deletions

View file

@ -31,10 +31,14 @@ mkdir -p "$(dirname "$out")"
if [[ ! -e "$out" ]]; then
args=()
for i in "${identities[@]}"; do
args+=("-i" "$i")
args+=("--identity" "$i")
done
rage -d "${args[@]}" -o "$out" "$file"
rage --decrypt "${args[@]}" --output "$out" "$file"
fi
# Print out path or decrypted content
[[ "$print_out_path" == true ]] && echo "$out" || cat "$out"
if [[ "$print_out_path" == true ]]; then
echo "$out"
else
cat "$out"
fi