{"action":"created","comment":{"url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls/comments/74887187","id":74887187,"diff_hunk":"@@ -3,18 +3,18 @@ set -euo pipefail # See http://redsymbol.net/articles/unofficial-bash-strict-mod\n IFS=$'\\n\\t'\n \n # Execute via crontab by hduser@weywot1:\n-# 30 6 * * * ssh sol@quaoar1 \"cd /home/sol/git/mabxml-elasticsearch ; bash -x cron.sh >> logs/cron.sh.log 2>&1\"\n+# 30 5 * * * ssh sol@quaoar1 \"cd /home/sol/git/mabxml-elasticsearch ; bash -x cron.sh >> logs/cron.sh.log 2>&1\"\n \n+TARGET_PATH=updates\n # Determine the latest update file and store it locally:\n-updates=http://dataproxy.lobid.org/alephxml/export/update/\n date=$(date \"+%Y%m%d\")\n-updateFile=$(curl --fail $updates | grep 'tar.gz' | cut -d '\"' -f2 | grep $date)\n-cd updates ; wget -nv $updates$updateFile ; cd ..\n-# first, copy to the full data directory , see hbz/lobid#310.\n-cp updates/* /files/open_data/open/DE-605/mabxml/\n+date_yesterday=$(date --date yesterday \"+%Y%m%d\")\n \n+cd $TARGET_PATH \n+wget -nv http://lobid.org/download/dumps/DE-605/mabxml/DE-605-aleph-update-marcxchange-$date_yesterday-$date.tar.gz\n+cd ..\n # Run the transformation with the latest file (and possibly unprocessed previous files):\n curl --fail -XPOST \"http://localhost:7300/hbz01/transform?dir=/home/sol/git/mabxml-elasticsearch/updates/&suffix=gz&cluster=quaoar1&hostname=193.30.112.170&index=hbz01\" >> logs/processMabxml.sh.$date.log 2>&1","path":"cron.sh","position":21,"original_position":21,"commit_id":"f9d08f5d4d7258d21ecbf5bb37ba24a4be76c7ee","original_commit_id":"f9d08f5d4d7258d21ecbf5bb37ba24a4be76c7ee","user":{"login":"fsteeg","id":128229,"avatar_url":"https://avatars.githubusercontent.com/u/128229?v=3","gravatar_id":"","url":"https://api.github.com/users/fsteeg","html_url":"https://github.com/fsteeg","followers_url":"https://api.github.com/users/fsteeg/followers","following_url":"https://api.github.com/users/fsteeg/following{/other_user}","gists_url":"https://api.github.com/users/fsteeg/gists{/gist_id}","starred_url":"https://api.github.com/users/fsteeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsteeg/subscriptions","organizations_url":"https://api.github.com/users/fsteeg/orgs","repos_url":"https://api.github.com/users/fsteeg/repos","events_url":"https://api.github.com/users/fsteeg/events{/privacy}","received_events_url":"https://api.github.com/users/fsteeg/received_events","type":"User","site_admin":false},"body":"I don't get it:\r\n\r\nWhy do you want to introduce a variable that's not used everywhere that its value is used?\r\nWhy don't you just use the variable in the place I pointed out?","created_at":"2016-08-16T07:28:25Z","updated_at":"2016-08-16T07:28:25Z","html_url":"https://github.com/hbz/mabxml-elasticsearch/pull/33#discussion_r74887187","pull_request_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls/comments/74887187"},"html":{"href":"https://github.com/hbz/mabxml-elasticsearch/pull/33#discussion_r74887187"},"pull_request":{"href":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls/33","id":80084643,"html_url":"https://github.com/hbz/mabxml-elasticsearch/pull/33","diff_url":"https://github.com/hbz/mabxml-elasticsearch/pull/33.diff","patch_url":"https://github.com/hbz/mabxml-elasticsearch/pull/33.patch","issue_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/issues/33","number":33,"state":"open","locked":false,"title":"Change location where to get mabxml","user":{"login":"dr0i","id":944023,"avatar_url":"https://avatars.githubusercontent.com/u/944023?v=3","gravatar_id":"","url":"https://api.github.com/users/dr0i","html_url":"https://github.com/dr0i","followers_url":"https://api.github.com/users/dr0i/followers","following_url":"https://api.github.com/users/dr0i/following{/other_user}","gists_url":"https://api.github.com/users/dr0i/gists{/gist_id}","starred_url":"https://api.github.com/users/dr0i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dr0i/subscriptions","organizations_url":"https://api.github.com/users/dr0i/orgs","repos_url":"https://api.github.com/users/dr0i/repos","events_url":"https://api.github.com/users/dr0i/events{/privacy}","received_events_url":"https://api.github.com/users/dr0i/received_events","type":"User","site_admin":false},"body":"- move mabxml-publishing to scripts mentioned in hbz/lobid-resources#91\r\n- changes minor things\r\n\r\nSee hbz/lobid-resources#91.","created_at":"2016-08-04T14:08:18Z","updated_at":"2016-08-16T07:28:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc264ed67b4b746136fe1489d93b82c59adf49e3","assignee":{"login":"fsteeg","id":128229,"avatar_url":"https://avatars.githubusercontent.com/u/128229?v=3","gravatar_id":"","url":"https://api.github.com/users/fsteeg","html_url":"https://github.com/fsteeg","followers_url":"https://api.github.com/users/fsteeg/followers","following_url":"https://api.github.com/users/fsteeg/following{/other_user}","gists_url":"https://api.github.com/users/fsteeg/gists{/gist_id}","starred_url":"https://api.github.com/users/fsteeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsteeg/subscriptions","organizations_url":"https://api.github.com/users/fsteeg/orgs","repos_url":"https://api.github.com/users/fsteeg/repos","events_url":"https://api.github.com/users/fsteeg/events{/privacy}","received_events_url":"https://api.github.com/users/fsteeg/received_events","type":"User","site_admin":false},"assignees":[{"login":"fsteeg","id":128229,"avatar_url":"https://avatars.githubusercontent.com/u/128229?v=3","gravatar_id":"","url":"https://api.github.com/users/fsteeg","html_url":"https://github.com/fsteeg","followers_url":"https://api.github.com/users/fsteeg/followers","following_url":"https://api.github.com/users/fsteeg/following{/other_user}","gists_url":"https://api.github.com/users/fsteeg/gists{/gist_id}","starred_url":"https://api.github.com/users/fsteeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsteeg/subscriptions","organizations_url":"https://api.github.com/users/fsteeg/orgs","repos_url":"https://api.github.com/users/fsteeg/repos","events_url":"https://api.github.com/users/fsteeg/events{/privacy}","received_events_url":"https://api.github.com/users/fsteeg/received_events","type":"User","site_admin":false},{"login":"dr0i","id":944023,"avatar_url":"https://avatars.githubusercontent.com/u/944023?v=3","gravatar_id":"","url":"https://api.github.com/users/dr0i","html_url":"https://github.com/dr0i","followers_url":"https://api.github.com/users/dr0i/followers","following_url":"https://api.github.com/users/dr0i/following{/other_user}","gists_url":"https://api.github.com/users/dr0i/gists{/gist_id}","starred_url":"https://api.github.com/users/dr0i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dr0i/subscriptions","organizations_url":"https://api.github.com/users/dr0i/orgs","repos_url":"https://api.github.com/users/dr0i/repos","events_url":"https://api.github.com/users/dr0i/events{/privacy}","received_events_url":"https://api.github.com/users/dr0i/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls/33/commits","review_comments_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls/33/comments","review_comment_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/issues/33/comments","statuses_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/statuses/f9d08f5d4d7258d21ecbf5bb37ba24a4be76c7ee","head":{"label":"hbz:hbz-lobid-resources-91-changeLocationOfMabxml","ref":"hbz-lobid-resources-91-changeLocationOfMabxml","sha":"f9d08f5d4d7258d21ecbf5bb37ba24a4be76c7ee","user":{"login":"hbz","id":6557108,"avatar_url":"https://avatars.githubusercontent.com/u/6557108?v=3","gravatar_id":"","url":"https://api.github.com/users/hbz","html_url":"https://github.com/hbz","followers_url":"https://api.github.com/users/hbz/followers","following_url":"https://api.github.com/users/hbz/following{/other_user}","gists_url":"https://api.github.com/users/hbz/gists{/gist_id}","starred_url":"https://api.github.com/users/hbz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbz/subscriptions","organizations_url":"https://api.github.com/users/hbz/orgs","repos_url":"https://api.github.com/users/hbz/repos","events_url":"https://api.github.com/users/hbz/events{/privacy}","received_events_url":"https://api.github.com/users/hbz/received_events","type":"Organization","site_admin":false},"repo":{"id":23076623,"name":"mabxml-elasticsearch","full_name":"hbz/mabxml-elasticsearch","owner":{"login":"hbz","id":6557108,"avatar_url":"https://avatars.githubusercontent.com/u/6557108?v=3","gravatar_id":"","url":"https://api.github.com/users/hbz","html_url":"https://github.com/hbz","followers_url":"https://api.github.com/users/hbz/followers","following_url":"https://api.github.com/users/hbz/following{/other_user}","gists_url":"https://api.github.com/users/hbz/gists{/gist_id}","starred_url":"https://api.github.com/users/hbz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbz/subscriptions","organizations_url":"https://api.github.com/users/hbz/orgs","repos_url":"https://api.github.com/users/hbz/repos","events_url":"https://api.github.com/users/hbz/events{/privacy}","received_events_url":"https://api.github.com/users/hbz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hbz/mabxml-elasticsearch","description":"Raw catalog data exposed via a web API","fork":false,"url":"https://api.github.com/repos/hbz/mabxml-elasticsearch","forks_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/forks","keys_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/teams","hooks_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/events","assignees_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/tags","blobs_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/languages","stargazers_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/subscription","commits_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/merges","archive_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/downloads","issues_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/deployments","created_at":"2014-08-18T15:35:48Z","updated_at":"2016-02-22T11:33:24Z","pushed_at":"2016-08-04T14:13:21Z","git_url":"git://github.com/hbz/mabxml-elasticsearch.git","ssh_url":"git@github.com:hbz/mabxml-elasticsearch.git","clone_url":"https://github.com/hbz/mabxml-elasticsearch.git","svn_url":"https://github.com/hbz/mabxml-elasticsearch","homepage":"http://beta.lobid.org/hbz01","size":594,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"hbz:master","ref":"master","sha":"89edaa4cbd7333e207bd8c161c20c50490618b3b","user":{"login":"hbz","id":6557108,"avatar_url":"https://avatars.githubusercontent.com/u/6557108?v=3","gravatar_id":"","url":"https://api.github.com/users/hbz","html_url":"https://github.com/hbz","followers_url":"https://api.github.com/users/hbz/followers","following_url":"https://api.github.com/users/hbz/following{/other_user}","gists_url":"https://api.github.com/users/hbz/gists{/gist_id}","starred_url":"https://api.github.com/users/hbz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbz/subscriptions","organizations_url":"https://api.github.com/users/hbz/orgs","repos_url":"https://api.github.com/users/hbz/repos","events_url":"https://api.github.com/users/hbz/events{/privacy}","received_events_url":"https://api.github.com/users/hbz/received_events","type":"Organization","site_admin":false},"repo":{"id":23076623,"name":"mabxml-elasticsearch","full_name":"hbz/mabxml-elasticsearch","owner":{"login":"hbz","id":6557108,"avatar_url":"https://avatars.githubusercontent.com/u/6557108?v=3","gravatar_id":"","url":"https://api.github.com/users/hbz","html_url":"https://github.com/hbz","followers_url":"https://api.github.com/users/hbz/followers","following_url":"https://api.github.com/users/hbz/following{/other_user}","gists_url":"https://api.github.com/users/hbz/gists{/gist_id}","starred_url":"https://api.github.com/users/hbz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbz/subscriptions","organizations_url":"https://api.github.com/users/hbz/orgs","repos_url":"https://api.github.com/users/hbz/repos","events_url":"https://api.github.com/users/hbz/events{/privacy}","received_events_url":"https://api.github.com/users/hbz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hbz/mabxml-elasticsearch","description":"Raw catalog data exposed via a web API","fork":false,"url":"https://api.github.com/repos/hbz/mabxml-elasticsearch","forks_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/forks","keys_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/teams","hooks_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/events","assignees_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/tags","blobs_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/languages","stargazers_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/subscription","commits_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/merges","archive_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/downloads","issues_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/hbz/mabxml-elasticsearch/deployments","created_at":"2014-08-18T15:35:48Z","updated_at":"2016-02-22T11:33:24Z","pushed_at":"2016-08-04T14:13:21Z","git_url":"git://github.com/hbz/mabxml-elasticsearch.git","ssh_url":"git@github.com:hbz/mabxml-elasticsearch.git","clone_url":"https://github.com/hbz/mabxml-elasticsearch.git","svn_url":"https://github.com/hbz/mabxml-elasticsearch","homepage":"http://beta.lobid.org/hbz01","size":594,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls/33"},"html":{"href":"https://github.com/hbz/mabxml-elasticsearch/pull/33"},"issue":{"href":"https://api.github.com/repos/hbz/mabxml-elasticsearch/issues/33"},"comments":{"href":"https://api.github.com/repos/hbz/mabxml-elasticsearch/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hbz/mabxml-elasticsearch/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/hbz/mabxml-elasticsearch/statuses/f9d08f5d4d7258d21ecbf5bb37ba24a4be76c7ee"}}}}
{"actor":{"display_login":"fsteeg"}}