Introduction
Introduction Statistics Contact Development Disclaimer Help
Add check, if some snapshot is available on archive.org. - annna - Annna the ni…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 9c3d93e2271e8d2f98834aace8ab44a147ed28cb
parent abc30b0ab170e1310f8f65195ab4bfcbbb5fa89a
Author: Annna Robert-Houdin <[email protected]>
Date: Sun, 12 Jan 2025 18:19:41 +0100
Add check, if some snapshot is available on archive.org.
Diffstat:
M fetch-uri | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/fetch-uri b/fetch-uri
@@ -1,5 +1,7 @@
#!/bin/sh
+set -x
+
export PATH="$HOME/bin:$PATH"
usage() {
@@ -37,7 +39,10 @@ then
aiapiuri="http://archive.org/wayback/available?url=${uri}"
apiai="$(curl -qgsm 5 --fail -L --max-redirs 3 -A "$ua" $opth ${usetor…
notavailable="$(echo "$apiia" | grep -c -e '"archived_snapshots": {}')"
- aiuri="$(echo "$apiia" | awk -F 'url": "' '{print $3}' 2>/dev/null | a…
- curl -qgsm 5 --fail -L --max-redirs 3 -A "$ua" $opth ${usetor:+--prepr…
+ if [ -z "${notavailable}" ];
+ then
+ aiuri="$(echo "$apiia" | awk -F 'url": "' '{print $3}' 2>/dev/…
+ curl -qgsm 5 --fail -L --max-redirs 3 -A "$ua" $opth ${usetor:…
+ fi
fi
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.