Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-leith committed Aug 3, 2018
1 parent ddbaa76 commit 88944ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions newparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def update_repository(master):
shutil.copyfile(master, gitPath + "/" + master)
#shutil.copyfile("yamlOne.yaml", "/users/aleith/github_pages/yaml-repository/yamlOne.yaml")
os.chdir(gitPath)
subprocess.call(['git ca "refchef autopush" && git push origin master'], shell=True)
subprocess.call(['git add --all && git commit -m "refchef autopush" && git push origin master'], shell=True)
os.chdir(startingDir)


Expand Down Expand Up @@ -366,7 +366,7 @@ def processEntry(self, rootDirectory, subYaml):
new_append(arguments.new, arguments.master)
os.rename("temp.yaml", arguments.master)
if(arguments.command == "local"):
if "github_directory" in configYaml["config-yaml"]["path-settings"].keys():
if configYaml["config-yaml"]["path-settings"]["github-directory"] != "":
update_repository(arguments.master)
sys.exit("Done")
elif(arguments.command == "remote"):
Expand All @@ -387,7 +387,7 @@ def processEntry(self, rootDirectory, subYaml):
# run processEntry for each subheading
os.chdir(home)
if(arguments.command == "local"):
if "github_directory" in configYaml["config-yaml"]["path-settings"].keys():
if configYaml["config-yaml"]["path-settings"]["github-directory"] != "":
update_repository(arguments.master)


0 comments on commit 88944ee

Please sign in to comment.