Compare commits
No commits in common. "4a2c9d359b941b042c10a610609339a8d7ff3b1c" and "643ff396fee23fc46498f756a7a2e46d0abbfb15" have entirely different histories.
4a2c9d359b
...
643ff396fe
1 changed files with 2 additions and 4 deletions
6
uoeia
6
uoeia
|
@ -40,7 +40,6 @@ die() {
|
|||
|
||||
cleanup() {
|
||||
rm -f -- "$cache_dir"/*
|
||||
rm -r -- "$cache_dir"
|
||||
}
|
||||
|
||||
from_local() {
|
||||
|
@ -76,13 +75,12 @@ dereference() {
|
|||
# default replacements:
|
||||
# teddit to original redd.it hosted picture
|
||||
output="${1//teddit.net\/pics\/w:null_/i.redd.it/}"
|
||||
output="${output//teddit.net/reddit.com}"
|
||||
# nitter to twitter
|
||||
output="${output//nitter.net/twitter.com}"
|
||||
output="${1//nitter.net/twitter.com}"
|
||||
|
||||
# custom replacements:
|
||||
for rep in "${replacements[@]}"; do
|
||||
output="${output//${rep%:::*}/${rep#*:::}}"
|
||||
output="${1//${rep%:::*}/${rep#*:::}}"
|
||||
done
|
||||
echo "$output"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue