File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,22 +5,22 @@ echo `date` > $logfile
55# sudo apt-get install php5-curl
66# composer install
77
8- echo SKIP Getting latest XSD
9- # XSDURL=https://apitest.authorize.net/xml/v1/schema/AnetApiSchema.xsd
10- # if [ -f AnetApiSchema.xsd ]; then
11- # echo "Renaming existing schema file"
12- # mv AnetApiSchema.xsd AnetApiSchema.xsd.old
13- # fi
14- # wget $XSDURL 1>> $logfile 2>&1
15- # ERRORCODE=$?
16- # if [ $ERRORCODE -ne 0 ];then
17- # echo "Unable to download XSD from $XSDURL"
18- # exit $ERRORCODE
19- # fi
20- # if [ ! -f AnetApiSchema.xsd ]; then
21- # echo "SchemaFile not found"
22- # exit 1
23- # fi
8+ echo Getting latest XSD
9+ XSDURL=https://apitest.authorize.net/xml/v1/schema/AnetApiSchema.xsd
10+ if [ -f AnetApiSchema.xsd ]; then
11+ echo " Renaming existing schema file"
12+ mv AnetApiSchema.xsd AnetApiSchema.xsd.old
13+ fi
14+ wget $XSDURL 1>> $logfile 2>&1
15+ ERRORCODE=$?
16+ if [ $ERRORCODE -ne 0 ]; then
17+ echo " Unable to download XSD from $XSDURL "
18+ exit $ERRORCODE
19+ fi
20+ if [ ! -f AnetApiSchema.xsd ]; then
21+ echo " SchemaFile not found"
22+ exit 1
23+ fi
2424
2525# create directories that do not exist
2626apidir=lib/net/authorize/api/contract/v1
You can’t perform that action at this time.
0 commit comments