diff --git a/update_erpnext.py b/update_erpnext.py new file mode 100644 index 0000000000..be368d6e87 --- /dev/null +++ b/update_erpnext.py @@ -0,0 +1,17 @@ +#!/usr/bin/python +import commands + +cmd_list = [ + 'lib/wnf.py --pull origin master', + 'lib/wnf.py -l', + 'lib/wnf.py --sync_all' +] + +for cmd in cmd_list: + stat, op = commands.getstatusoutput(cmd) + if stat != 0: + print "something went wrong" + print "cannot proceed with update" + print "status: %s" % stat + print "output: %s" % op + break \ No newline at end of file