Skip to content

Commit

Permalink
fixed error for IA returned urls
Browse files Browse the repository at this point in the history
  • Loading branch information
uriel1998 committed May 12, 2021
1 parent 2ca247a commit 8ce82ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion muna.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function unredirector {
echo "[info] Fetching Internet Archive version of" >&2;
echo "[info] page $firsturl" >&2;
fi
url=$(echo "$api_ia" | awk -F 'url": "' '{print $2}' 2>/dev/null | awk -F '", "' '{print $1}' | awk -F '"' '{print $1}')
url=$(echo "$api_ia" | awk -F 'url": "' '{print $3}' 2>/dev/null | awk -F '", "' '{print $1}' | awk -F '"' '{print $1}')
unset -v firsturl
fi
else
Expand Down

0 comments on commit 8ce82ea

Please sign in to comment.