Skip to content

Commit

Permalink
Update for the website migration
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Jun 13, 2023
1 parent ed386e4 commit a3aa476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions getPathway.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

wpid=$1
revision=`curl -s https://www.wikipathways.org/index.php/Pathway:$wpid | grep "wgCurRevisionId" | cut -d"\"" -f2`
url="https://www.wikipathways.org//wpi/wpi.php?action=downloadFile&type=gpml&pwTitle=Pathway:$wpid&oldid=$revision"
revision=`curl -s https://classic.wikipathways.org/index.php/Pathway:$wpid | grep "wgCurRevisionId" | cut -d"\"" -f2`
url="https://classic.wikipathways.org//wpi/wpi.php?action=downloadFile&type=gpml&pwTitle=Pathway:$wpid&oldid=$revision"

curl -s -o gpml/$wpid.gpml $url

Expand Down

0 comments on commit a3aa476

Please sign in to comment.