diff --git a/code/plugins/update_plugins.sh b/code/plugins/update_plugins.sh index d9d4d83..6a71f83 100644 --- a/code/plugins/update_plugins.sh +++ b/code/plugins/update_plugins.sh @@ -1,12 +1,6 @@ #!/bin/bash - -DIRECTORY="/path/to/directory" - -if [ -d "$DIRECTORY" ]; then - # Directory exists, pull changes - cd "$DIRECTORY" - git pull -else - # Directory doesn't exist, clone from GitHub - git clone https://github.com/username/repository.git "$DIRECTORY" -fi \ No newline at end of file +cd /Users/dtyoung/Documents/EEGLAB/sccn.github.io/code/plugins +git pull --rebase +python update_plugins.py +git add -A && git commit -m "scheduled plugin update" +git push \ No newline at end of file