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:
parent
c30ec709a7
commit
4cbbd2f871
2 changed files with 30 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue