summaryrefslogtreecommitdiff
path: root/projects/foaf/mkfoaf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'projects/foaf/mkfoaf.sh')
-rwxr-xr-xprojects/foaf/mkfoaf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/foaf/mkfoaf.sh b/projects/foaf/mkfoaf.sh
index dbb842f..e8ee107 100755
--- a/projects/foaf/mkfoaf.sh
+++ b/projects/foaf/mkfoaf.sh
@@ -38,7 +38,7 @@ linkedin2foaf() {
# TODO: support homepage as fallback for accountName
# id=$(perl -0 -ne '/foaf:accountServiceHomepage\s+<http:\/\/www.linkedin.com\/>\s+;\s+foaf:(?:homepage\s+<(?=http)|accountName\s+")([^<"\s]+)/ and print $1 and exit;' "$inpath") #'
- id=$(perl -0 -ne '/^<#me>.*?foaf:accountServiceHomepage\s+<http:\/\/www.linkedin.com\/>\s+;\s+foaf:accountName\s+"([^<"\s]+)/ms and print $1 and exit;' "$inpath") #'
+ id=$(perl -0 -ne '/^:me.*?foaf:accountServiceHomepage\s+<http:\/\/www.linkedin.com\/>\s+;\s+foaf:accountName\s+"([^<"\s]+)/ms and print $1 and exit;' "$inpath") #'
[ -n "$id" ] || exit1 "Failed to resolve LinkedIn account name."
mkdir -p "$outdir"